diff options
Diffstat (limited to 'lstring.c')
-rw-r--r-- | lstring.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstring.c,v 1.23 1999/10/11 16:13:11 roberto Exp roberto $ | 2 | ** $Id: lstring.c,v 1.24 1999/10/14 19:13:31 roberto Exp roberto $ |
3 | ** String table (keeps all strings handled by Lua) | 3 | ** String table (keeps all strings handled by Lua) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -146,7 +146,7 @@ static TaggedString *insert_s (const char *str, long l, | |||
146 | 146 | ||
147 | 147 | ||
148 | static TaggedString *insert_u (void *buff, int tag, stringtable *tb) { | 148 | static TaggedString *insert_u (void *buff, int tag, stringtable *tb) { |
149 | unsigned long h = (unsigned long)buff; | 149 | unsigned long h = (IntPoint)buff; |
150 | int h1 = h%tb->size; | 150 | int h1 = h%tb->size; |
151 | TaggedString *ts; | 151 | TaggedString *ts; |
152 | for (ts = tb->hash[h1]; ts; ts = ts->nexthash) | 152 | for (ts = tb->hash[h1]; ts; ts = ts->nexthash) |
@@ -160,7 +160,7 @@ static TaggedString *insert_u (void *buff, int tag, stringtable *tb) { | |||
160 | 160 | ||
161 | 161 | ||
162 | TaggedString *luaS_createudata (void *udata, int tag) { | 162 | TaggedString *luaS_createudata (void *udata, int tag) { |
163 | int t = ((unsigned int)udata%NUM_HASHUDATA)+NUM_HASHSTR; | 163 | int t = ((IntPoint)udata%NUM_HASHUDATA)+NUM_HASHSTR; |
164 | return insert_u(udata, tag, &L->string_root[t]); | 164 | return insert_u(udata, tag, &L->string_root[t]); |
165 | } | 165 | } |
166 | 166 | ||