aboutsummaryrefslogtreecommitdiff
path: root/src/lj_tab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_tab.c')
-rw-r--r--src/lj_tab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_tab.c b/src/lj_tab.c
index 427b6118..fc44fdb4 100644
--- a/src/lj_tab.c
+++ b/src/lj_tab.c
@@ -22,7 +22,7 @@
22/* String hashes are precomputed when they are interned. */ 22/* String hashes are precomputed when they are interned. */
23#define hashstr(t, s) hashmask(t, (s)->hash) 23#define hashstr(t, s) hashmask(t, (s)->hash)
24 24
25#define hashnum(t, o) hashrot(t, (o)->u32.lo, (o)->u32.hi&0x7fffffff) 25#define hashnum(t, o) hashrot(t, (o)->u32.lo, ((o)->u32.hi << 1))
26#define hashgcref(t, r) hashrot(t, gcrefu(r), gcrefu(r)-0x04c11db7) 26#define hashgcref(t, r) hashrot(t, gcrefu(r), gcrefu(r)-0x04c11db7)
27 27
28/* Scramble the bits of numbers and pointers. */ 28/* Scramble the bits of numbers and pointers. */