aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
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 59adf0d9..bd250e53 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 1.32 1999/12/07 12:05:34 roberto Exp roberto $ 2** $Id: ltable.c,v 1.33 1999/12/23 18:19:57 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*/
@@ -86,7 +86,7 @@ const TObject *luaH_get (lua_State *L, const Hash *t, const TObject *key) {
86int luaH_pos (lua_State *L, const Hash *t, const TObject *key) { 86int luaH_pos (lua_State *L, const Hash *t, const TObject *key) {
87 const TObject *v = luaH_get(L, t, key); 87 const TObject *v = luaH_get(L, t, key);
88 return (v == &luaO_nilobject) ? -1 : /* key not found */ 88 return (v == &luaO_nilobject) ? -1 : /* key not found */
89 ((const char *)v - (const char *)(&t->node[0].val))/sizeof(Node); 89 (int)(((const char *)v - (const char *)(&t->node[0].val))/sizeof(Node));
90} 90}
91 91
92 92