diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-06-02 16:31:40 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-06-02 16:31:40 -0300 |
commit | 3b44821334a1aa387c13eaf3cd23a2344091cbc7 (patch) | |
tree | 7070ed226b6db26ae82f99d94138465a95b0d7fc /ltable.c | |
parent | 0214dab989396de05567f293e6aa909ee2ffbac1 (diff) | |
download | lua-3b44821334a1aa387c13eaf3cd23a2344091cbc7.tar.gz lua-3b44821334a1aa387c13eaf3cd23a2344091cbc7.tar.bz2 lua-3b44821334a1aa387c13eaf3cd23a2344091cbc7.zip |
stricter control (using tag variants) over closure kinds (Lua x C)
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: { |