warnings from Visual C++
This commit is contained in:
4
ltable.c
4
ltable.c
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: ltable.c,v 1.25 1999/10/04 17:51:04 roberto Exp roberto $
|
||||
** $Id: ltable.c,v 1.26 1999/10/14 19:13:31 roberto Exp roberto $
|
||||
** Lua tables (hash)
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -63,7 +63,7 @@ static Node *luaH_mainposition (const Hash *t, const TObject *key) {
|
||||
lua_error("unexpected type to index table");
|
||||
h = 0; /* to avoid warnings */
|
||||
}
|
||||
return &t->node[h%t->size];
|
||||
return &t->node[h%(unsigned int)t->size];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user