From 8f8665fffad817d764ce03a53385f2ee08cb0a91 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 12 Apr 2013 16:07:09 -0300 Subject: 'ttypenv' -> 'ttnov' --- ltm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ltm.c') diff --git a/ltm.c b/ltm.c index 35934058..0f0cb91b 100644 --- a/ltm.c +++ b/ltm.c @@ -1,5 +1,5 @@ /* -** $Id: ltm.c,v 2.13 2011/02/28 17:32:10 roberto Exp roberto $ +** $Id: ltm.c,v 2.14 2011/06/02 19:31:40 roberto Exp roberto $ ** Tag methods ** See Copyright Notice in lua.h */ @@ -62,7 +62,7 @@ const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) { Table *mt; - switch (ttypenv(o)) { + switch (ttnov(o)) { case LUA_TTABLE: mt = hvalue(o)->metatable; break; @@ -70,7 +70,7 @@ const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) { mt = uvalue(o)->metatable; break; default: - mt = G(L)->mt[ttypenv(o)]; + mt = G(L)->mt[ttnov(o)]; } return (mt ? luaH_getstr(mt, G(L)->tmname[event]) : luaO_nilobject); } -- cgit v1.2.3-55-g6feb