diff options
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 1.7 1997/11/21 19:00:46 roberto Exp roberto $ +** $Id: ltable.c,v 1.8 1997/12/09 13:35:19 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -36,9 +36,15 @@ static long int hashindex (TObject *ref) case LUA_T_STRING: case LUA_T_USERDATA: h = (IntPoint)tsvalue(ref); break; - case LUA_T_FUNCTION: + case LUA_T_CLOSURE: h = (IntPoint)clvalue(ref); break; + case LUA_T_PROTO: + h = (IntPoint)tfvalue(ref); + break; + case LUA_T_CPROTO: + h = (IntPoint)fvalue(ref); + break; case LUA_T_ARRAY: h = (IntPoint)avalue(ref); break; |