diff options
Diffstat (limited to 'ltable.c')
| -rw-r--r-- | ltable.c | 10 |
1 files changed, 3 insertions, 7 deletions
| @@ -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 */ |
