mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
warnings from Visual C++
This commit is contained in:
parent
8e7451512f
commit
910836fb53
7 changed files with 15 additions and 16 deletions
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];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue