diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-10-19 11:33:22 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-10-19 11:33:22 -0200 |
commit | 910836fb53cb80e93de666526714bc51f2c63510 (patch) | |
tree | 954e893d1ed30b8bcb1fc89b063e7b56472dd899 /lstring.c | |
parent | 8e7451512f01a89b4230be65cf086f7c1d41d2e2 (diff) | |
download | lua-910836fb53cb80e93de666526714bc51f2c63510.tar.gz lua-910836fb53cb80e93de666526714bc51f2c63510.tar.bz2 lua-910836fb53cb80e93de666526714bc51f2c63510.zip |
warnings from Visual C++
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 | ||