aboutsummaryrefslogtreecommitdiff
path: root/lref.c
diff options
context:
space:
mode:
Diffstat (limited to 'lref.c')
-rw-r--r--lref.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lref.c b/lref.c
index fdfdc5df..42ee5eda 100644
--- a/lref.c
+++ b/lref.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lref.c,v 1.11 2000/03/29 20:19:20 roberto Exp roberto $ 2** $Id: lref.c,v 1.12 2000/05/24 13:54:49 roberto Exp roberto $
3** reference mechanism 3** reference mechanism
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -84,11 +84,11 @@ static int ismarked (const TObject *o) {
84 /* valid only for locked objects */ 84 /* valid only for locked objects */
85 switch (o->ttype) { 85 switch (o->ttype) {
86 case TAG_STRING: case TAG_USERDATA: 86 case TAG_STRING: case TAG_USERDATA:
87 return o->value.ts->marked; 87 return tsvalue(o)->marked;
88 case TAG_TABLE: 88 case TAG_TABLE:
89 return o->value.a->marked; 89 return hvalue(o)->marked;
90 case TAG_LCLOSURE: case TAG_CCLOSURE: 90 case TAG_LCLOSURE: case TAG_CCLOSURE:
91 return o->value.cl->marked; 91 return clvalue(o)->marked;
92 default: /* number */ 92 default: /* number */
93 return 1; 93 return 1;
94 } 94 }