aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-10-19 11:33:22 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-10-19 11:33:22 -0200
commit910836fb53cb80e93de666526714bc51f2c63510 (patch)
tree954e893d1ed30b8bcb1fc89b063e7b56472dd899 /ltable.c
parent8e7451512f01a89b4230be65cf086f7c1d41d2e2 (diff)
downloadlua-910836fb53cb80e93de666526714bc51f2c63510.tar.gz
lua-910836fb53cb80e93de666526714bc51f2c63510.tar.bz2
lua-910836fb53cb80e93de666526714bc51f2c63510.zip
warnings from Visual C++
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltable.c b/ltable.c
index adb7932f..947f1813 100644
--- a/ltable.c
+++ b/ltable.c
@@ -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