aboutsummaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-06-08 15:27:13 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-06-08 15:27:13 -0300
commit8ca9534d048782af13141874e0d2fec0d0f806af (patch)
treed58ab47be12ff9d5910ffaf6222cf94bd0dff0f6 /ltm.c
parent8bcf6228765e56be19feb90c8805cc2fb2223188 (diff)
downloadlua-8ca9534d048782af13141874e0d2fec0d0f806af.tar.gz
lua-8ca9534d048782af13141874e0d2fec0d0f806af.tar.bz2
lua-8ca9534d048782af13141874e0d2fec0d0f806af.zip
access to `values' in TObject always through macros
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 a173879e..1fdff400 100644
--- a/ltm.c
+++ b/ltm.c
@@ -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}