diff options
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 2.56 2011/05/31 18:24:36 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.57 2011/05/31 18:27:56 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 | */ |
@@ -468,7 +468,7 @@ const TValue *luaH_getstr (Table *t, TString *key) { | |||
468 | ** main search function | 468 | ** main search function |
469 | */ | 469 | */ |
470 | const TValue *luaH_get (Table *t, const TValue *key) { | 470 | const TValue *luaH_get (Table *t, const TValue *key) { |
471 | switch (ttype(key)) { | 471 | switch (ttypenv(key)) { |
472 | case LUA_TNIL: return luaO_nilobject; | 472 | case LUA_TNIL: return luaO_nilobject; |
473 | case LUA_TSTRING: return luaH_getstr(t, rawtsvalue(key)); | 473 | case LUA_TSTRING: return luaH_getstr(t, rawtsvalue(key)); |
474 | case LUA_TNUMBER: { | 474 | case LUA_TNUMBER: { |