]> git.saurik.com Git - redis.git/commitdiff
Macros ULONG_ONEZERO / ULONG_ZEROONE were inverted in #ifdef to test 32/64 bit arch.
authorantirez <antirez@gmail.com>
Wed, 11 Apr 2012 09:32:22 +0000 (11:32 +0200)
committerantirez <antirez@gmail.com>
Wed, 11 Apr 2012 09:32:22 +0000 (11:32 +0200)
src/memtest.c

index 272ec502255527207afd27af952b222df5f10a24..c8b47d489a34b72234a79ea678f539c7c3280bf3 100644 (file)
 #endif
 
 #ifdef MEMTEST_32BIT
-#define ULONG_ONEZERO 0xaaaaaaaaaaaaaaaaUL
-#define ULONG_ZEROONE 0x5555555555555555UL
-#else
 #define ULONG_ONEZERO 0xaaaaaaaaUL
 #define ULONG_ZEROONE 0x55555555UL
+#else
+#define ULONG_ONEZERO 0xaaaaaaaaaaaaaaaaUL
+#define ULONG_ZEROONE 0x5555555555555555UL
 #endif
 
 static struct winsize ws;