diff options
Diffstat (limited to 'ltm.c')
-rw-r--r-- | ltm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltm.c,v 1.40 2000/05/24 13:54:49 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 1.41 2000/05/30 18:54:49 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 | */ |
@@ -110,10 +110,10 @@ int luaT_effectivetag (lua_State *L, const TObject *o) { | |||
110 | lua_Type t = ttype(o); | 110 | lua_Type t = ttype(o); |
111 | switch (t) { | 111 | switch (t) { |
112 | case TAG_USERDATA: { | 112 | case TAG_USERDATA: { |
113 | int tag = o->value.ts->u.d.tag; | 113 | int tag = tsvalue(o)->u.d.tag; |
114 | return (tag > L->last_tag) ? TAG_USERDATA : tag; /* deprecated test */ | 114 | return (tag > L->last_tag) ? TAG_USERDATA : tag; /* deprecated test */ |
115 | } | 115 | } |
116 | case TAG_TABLE: return o->value.a->htag; | 116 | case TAG_TABLE: return hvalue(o)->htag; |
117 | default: return t; | 117 | default: return t; |
118 | } | 118 | } |
119 | } | 119 | } |