From 4964e7c8a0284a75a57cf591c3b3c77febaf40e6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 2 Sep 2002 16:54:49 -0300 Subject: details --- ltable.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index 2363d8ad..b55201bb 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 1.117 2002/08/16 14:45:55 roberto Exp roberto $ +** $Id: ltable.c,v 1.118 2002/08/30 19:09:21 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -83,12 +83,8 @@ Node *luaH_mainposition (const Table *t, const TObject *key) { return hashboolean(t, bvalue(key)); case LUA_TLIGHTUSERDATA: return hashpointer(t, pvalue(key)); - case LUA_TUSERDATA: - return hashpointer(t, uvalue(key)); - case LUA_TFUNCTION: - return hashpointer(t, clvalue(key)); - case LUA_TTABLE: - return hashpointer(t, hvalue(key)); + default: + return hashpointer(t, gcvalue(key)); } lua_assert(0); return 0; /* to avoid warnings */ -- cgit v1.2.3-55-g6feb