summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/string.c b/string.c
index 5540097496..f6027df076 100644
--- a/string.c
+++ b/string.c
@@ -1883,7 +1883,7 @@ rb_str_concat(VALUE str1, VALUE str2)
/* MurmurHash described in http://murmurhash.googlepages.com/ */
#ifndef MURMUR
-#define MURMUR 1
+#define MURMUR 2
#endif
#define MurmurMagic 0x7fd652ad
@@ -2032,7 +2032,7 @@ hash(const unsigned char * data, int len, unsigned int h)
#endif
#if MURMUR == 1
h = murmur_step(h, t);
-#elif MURMUR1 == 2
+#elif MURMUR == 2
h ^= t;
h *= MurmurMagic;
#endif