summaryrefslogtreecommitdiff
path: root/src/memtest.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2012-04-11 11:32:22 +0200
committerantirez <antirez@gmail.com>2012-04-11 11:32:22 +0200
commitd98b03b791154e92238a91f72d83fe0b01495b08 (patch)
tree8fb3ded88d026b32284826dce81cd2478916816e /src/memtest.c
parent0a08d2b0e5d2e8a0cbaf7bbf712799ae2778a57a (diff)
downloadredis-d98b03b791154e92238a91f72d83fe0b01495b08.tar.gz
Macros ULONG_ONEZERO / ULONG_ZEROONE were inverted in #ifdef to test 32/64 bit arch.
Diffstat (limited to 'src/memtest.c')
-rw-r--r--src/memtest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/memtest.c b/src/memtest.c
index 272ec5022..c8b47d489 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;