From 74f1c3d025c6d8a714454470a953f383a1c6a641 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 8 Feb 2000 14:39:42 -0200 Subject: small changes for "clean C" --- ltable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index 59adf0d9..bd250e53 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 1.32 1999/12/07 12:05:34 roberto Exp roberto $ +** $Id: ltable.c,v 1.33 1999/12/23 18:19:57 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -86,7 +86,7 @@ const TObject *luaH_get (lua_State *L, const Hash *t, const TObject *key) { int luaH_pos (lua_State *L, const Hash *t, const TObject *key) { const TObject *v = luaH_get(L, t, key); return (v == &luaO_nilobject) ? -1 : /* key not found */ - ((const char *)v - (const char *)(&t->node[0].val))/sizeof(Node); + (int)(((const char *)v - (const char *)(&t->node[0].val))/sizeof(Node)); } -- cgit v1.2.3-55-g6feb