aboutsummaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-04-12 16:07:09 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-04-12 16:07:09 -0300
commit8f8665fffad817d764ce03a53385f2ee08cb0a91 (patch)
treeec8ac7607d5553acdd10f096369f5b28ebc0ace8 /ltm.c
parent49c1607157560f0775f3c697cca47b06978cc3e5 (diff)
downloadlua-8f8665fffad817d764ce03a53385f2ee08cb0a91.tar.gz
lua-8f8665fffad817d764ce03a53385f2ee08cb0a91.tar.bz2
lua-8f8665fffad817d764ce03a53385f2ee08cb0a91.zip
'ttypenv' -> 'ttnov'
Diffstat (limited to 'ltm.c')
-rw-r--r--ltm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltm.c b/ltm.c
index 35934058..0f0cb91b 100644
--- a/ltm.c
+++ b/ltm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.c,v 2.13 2011/02/28 17:32:10 roberto Exp roberto $ 2** $Id: ltm.c,v 2.14 2011/06/02 19:31:40 roberto Exp roberto $
3** Tag methods 3** Tag methods
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -62,7 +62,7 @@ const TValue *luaT_gettm (Table *events, TMS event, TString *ename) {
62 62
63const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) { 63const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) {
64 Table *mt; 64 Table *mt;
65 switch (ttypenv(o)) { 65 switch (ttnov(o)) {
66 case LUA_TTABLE: 66 case LUA_TTABLE:
67 mt = hvalue(o)->metatable; 67 mt = hvalue(o)->metatable;
68 break; 68 break;
@@ -70,7 +70,7 @@ const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) {
70 mt = uvalue(o)->metatable; 70 mt = uvalue(o)->metatable;
71 break; 71 break;
72 default: 72 default:
73 mt = G(L)->mt[ttypenv(o)]; 73 mt = G(L)->mt[ttnov(o)];
74 } 74 }
75 return (mt ? luaH_getstr(mt, G(L)->tmname[event]) : luaO_nilobject); 75 return (mt ? luaH_getstr(mt, G(L)->tmname[event]) : luaO_nilobject);
76} 76}