diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-02-08 14:39:42 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-02-08 14:39:42 -0200 |
commit | 74f1c3d025c6d8a714454470a953f383a1c6a641 (patch) | |
tree | cc89dfa109c64ed928217d777959ffc7ace12501 /ltable.c | |
parent | 1f691a4fcd32b706c79e4c8cbff17c6ae985bc34 (diff) | |
download | lua-74f1c3d025c6d8a714454470a953f383a1c6a641.tar.gz lua-74f1c3d025c6d8a714454470a953f383a1c6a641.tar.bz2 lua-74f1c3d025c6d8a714454470a953f383a1c6a641.zip |
small changes for "clean C"
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { | |||
86 | int luaH_pos (lua_State *L, const Hash *t, const TObject *key) { | 86 | int 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 | ||