aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/ltable.c b/ltable.c
index 2363d8ad..b55201bb 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 1.117 2002/08/16 14:45:55 roberto Exp roberto $ 2** $Id: ltable.c,v 1.118 2002/08/30 19:09:21 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*/
@@ -83,12 +83,8 @@ Node *luaH_mainposition (const Table *t, const TObject *key) {
83 return hashboolean(t, bvalue(key)); 83 return hashboolean(t, bvalue(key));
84 case LUA_TLIGHTUSERDATA: 84 case LUA_TLIGHTUSERDATA:
85 return hashpointer(t, pvalue(key)); 85 return hashpointer(t, pvalue(key));
86 case LUA_TUSERDATA: 86 default:
87 return hashpointer(t, uvalue(key)); 87 return hashpointer(t, gcvalue(key));
88 case LUA_TFUNCTION:
89 return hashpointer(t, clvalue(key));
90 case LUA_TTABLE:
91 return hashpointer(t, hvalue(key));
92 } 88 }
93 lua_assert(0); 89 lua_assert(0);
94 return 0; /* to avoid warnings */ 90 return 0; /* to avoid warnings */