mirror of
https://github.com/samba-team/samba.git
synced 2025-08-29 13:49:30 +03:00
r18936: hopefully fix the test for negative enum values. When a compiler
truncates the enums, the test was passing.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
5fd53ea6a3
commit
c6216f7dbf
@ -37,17 +37,11 @@ AC_CACHE_CHECK([that the C compiler understands negative enum values],SMB_BUILD_
|
||||
enum negative_values { NEGATIVE_VALUE = 0xFFFFFFFF };
|
||||
int main(void) {
|
||||
enum negative_values v1 = NEGATIVE_VALUE;
|
||||
unsigned v2 = NEGATIVE_VALUE;
|
||||
|
||||
if (v1 != 0xFFFFFFFF) {
|
||||
printf("%u != 0xFFFFFFFF\n", v1);
|
||||
unsigned v2 = 0xFFFFFFFF;
|
||||
if (v1 != v2) {
|
||||
printf("v1=0x%08x v2=0x%08x\n", v1, v2);
|
||||
return 1;
|
||||
}
|
||||
if (v2 != 0xFFFFFFFF) {
|
||||
printf("%u != 0xFFFFFFFF\n", v2);
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
],
|
||||
|
Reference in New Issue
Block a user