summaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltm.c')
-rw-r--r--ltm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltm.c b/ltm.c
index 215c7bf5..7e787902 100644
--- a/ltm.c
+++ b/ltm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: $ 2** $Id: ltm.c,v 1.1 1997/09/16 19:25:59 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*/
@@ -176,7 +176,7 @@ int luaT_efectivetag (TObject *o)
176{ 176{
177 lua_Type t = ttype(o); 177 lua_Type t = ttype(o);
178 if (t == LUA_T_USERDATA) { 178 if (t == LUA_T_USERDATA) {
179 int tag = o->value.ts->tag; 179 int tag = o->value.ts->u.d.tag;
180 return (tag >= 0) ? LUA_T_USERDATA : tag; 180 return (tag >= 0) ? LUA_T_USERDATA : tag;
181 } 181 }
182 else if (t == LUA_T_ARRAY) 182 else if (t == LUA_T_ARRAY)