warnings from Visual C++

This commit is contained in:
Roberto Ierusalimschy
1999-10-19 11:33:22 -02:00
parent 8e7451512f
commit 910836fb53
7 changed files with 15 additions and 16 deletions

View File

@@ -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];
}