summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2012-04-11 11:32:22 +0200
committerantirez <antirez@gmail.com>2012-05-11 16:04:27 +0200
commitd8769edf15c3a9a908e54f273cdb100563fc14c2 (patch)
treec175d6dbfaef4ba2104053629cf2f601692e51c7
parente2c0197d98f7b8b79cef1e6d8414b59749291e4e (diff)
downloadredis-d8769edf15c3a9a908e54f273cdb100563fc14c2.tar.gz
Macros ULONG_ONEZERO / ULONG_ZEROONE were inverted in #ifdef to test 32/64 bit arch.
-rw-r--r--src/memtest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/memtest.c b/src/memtest.c
index 702d492c4..ab724c3e5 100644
--- a/src/memtest.c
+++ b/src/memtest.c
@@ -16,11 +16,11 @@
#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;