diff options
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 | ||