diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-09-02 16:54:49 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-09-02 16:54:49 -0300 |
| commit | 4964e7c8a0284a75a57cf591c3b3c77febaf40e6 (patch) | |
| tree | d47c75cc6c36b87b8c837fe9487161c375d76d1c /ltable.c | |
| parent | 2c670baf24115d9c59b5869b89873b93af8b779d (diff) | |
| download | lua-4964e7c8a0284a75a57cf591c3b3c77febaf40e6.tar.gz lua-4964e7c8a0284a75a57cf591c3b3c77febaf40e6.tar.bz2 lua-4964e7c8a0284a75a57cf591c3b3c77febaf40e6.zip | |
details
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 */ |
