git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df7ec4a
)
r18936: hopefully fix the test for negative enum values. When a compiler
author
Andrew Tridgell
<tridge@samba.org>
Wed, 27 Sep 2006 02:00:13 +0000
(
02:00
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:20:22 +0000
(14:20 -0500)
truncates the enums, the test was passing.
(This used to be commit
c6216f7dbf68012fa8351dcae17fe4c7ab165b58
)
source4/build/m4/check_cc.m4
patch
|
blob
|
history
diff --git
a/source4/build/m4/check_cc.m4
b/source4/build/m4/check_cc.m4
index 2425d3da4b4b6e3ea0d913d83dda2a1f67e71e68..f1b4f82ceca65f2f33a7fe07dd91b19d88986d02 100644
(file)
--- a/
source4/build/m4/check_cc.m4
+++ b/
source4/build/m4/check_cc.m4
@@
-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);
- return 1;
- }
- if (v2 != 0xFFFFFFFF) {
- printf("%u != 0xFFFFFFFF\n", v2);
+ unsigned v2 = 0xFFFFFFFF;
+ if (v1 != v2) {
+ printf("v1=0x%08x v2=0x%08x\n", v1, v2);
return 1;
}
-
return 0;
}
],