diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-26 13:58:50 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-26 13:58:50 -0200 |
commit | b82242d4c493191d543fe5784b4d884e0cba9809 (patch) | |
tree | 0f006771a6b86fd5501f21085dc60a643ca1ea08 /ltable.c | |
parent | ac390020e91e14f00200ad3df97682b715d3e59b (diff) | |
download | lua-b82242d4c493191d543fe5784b4d884e0cba9809.tar.gz lua-b82242d4c493191d543fe5784b4d884e0cba9809.tar.bz2 lua-b82242d4c493191d543fe5784b4d884e0cba9809.zip |
detail
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 1.68 2001/01/26 13:18:00 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 1.69 2001/01/26 14:16:35 roberto Exp roberto $ |
3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -31,9 +31,9 @@ | |||
31 | #define TagDefault LUA_TTABLE | 31 | #define TagDefault LUA_TTABLE |
32 | 32 | ||
33 | 33 | ||
34 | #define hashnum(t,n) (&t->node[(luint32)(lint32)(n)&(t->size-1)]) | 34 | #define hashnum(t,n) (&t->node[lmod((luint32)(lint32)(n), t->size)]) |
35 | #define hashstr(t,str) (&t->node[(str)->u.s.hash&(t->size-1)]) | 35 | #define hashstr(t,str) (&t->node[lmod((str)->u.s.hash, t->size)]) |
36 | #define hashpointer(t,p) (&t->node[IntPoint(p)&(t->size-1)]) | 36 | #define hashpointer(t,p) (&t->node[lmod(IntPoint(p), t->size)]) |
37 | 37 | ||
38 | 38 | ||
39 | /* | 39 | /* |