aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-06-02 16:31:40 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-06-02 16:31:40 -0300
commit3b44821334a1aa387c13eaf3cd23a2344091cbc7 (patch)
tree7070ed226b6db26ae82f99d94138465a95b0d7fc /ltable.c
parent0214dab989396de05567f293e6aa909ee2ffbac1 (diff)
downloadlua-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltable.c b/ltable.c
index 410411f1..e4ff8dd5 100644
--- a/ltable.c
+++ b/ltable.c
@@ -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*/
470const TValue *luaH_get (Table *t, const TValue *key) { 470const 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: {