From a580480b07cdf7201306b246deeb2fe84f2c25a9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 26 Sep 1997 12:02:26 -0300 Subject: new implementation for globals: Global value is stored in TaggedString --- ltm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltm.c') diff --git a/ltm.c b/ltm.c index 215c7bf5..7e787902 100644 --- a/ltm.c +++ b/ltm.c @@ -1,5 +1,5 @@ /* -** $Id: $ +** $Id: ltm.c,v 1.1 1997/09/16 19:25:59 roberto Exp roberto $ ** Tag methods ** See Copyright Notice in lua.h */ @@ -176,7 +176,7 @@ int luaT_efectivetag (TObject *o) { lua_Type t = ttype(o); if (t == LUA_T_USERDATA) { - int tag = o->value.ts->tag; + int tag = o->value.ts->u.d.tag; return (tag >= 0) ? LUA_T_USERDATA : tag; } else if (t == LUA_T_ARRAY) -- cgit v1.2.3-55-g6feb