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 /ltable.c | |
parent | 8e7451512f01a89b4230be65cf086f7c1d41d2e2 (diff) | |
download | lua-910836fb53cb80e93de666526714bc51f2c63510.tar.gz lua-910836fb53cb80e93de666526714bc51f2c63510.tar.bz2 lua-910836fb53cb80e93de666526714bc51f2c63510.zip |
warnings from Visual C++
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 1.25 1999/10/04 17:51:04 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 1.26 1999/10/14 19:13:31 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 | */ |
@@ -63,7 +63,7 @@ static Node *luaH_mainposition (const Hash *t, const TObject *key) { | |||
63 | lua_error("unexpected type to index table"); | 63 | lua_error("unexpected type to index table"); |
64 | h = 0; /* to avoid warnings */ | 64 | h = 0; /* to avoid warnings */ |
65 | } | 65 | } |
66 | return &t->node[h%t->size]; | 66 | return &t->node[h%(unsigned int)t->size]; |
67 | } | 67 | } |
68 | 68 | ||
69 | 69 | ||