aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lj_ctype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_ctype.c b/src/lj_ctype.c
index 0b59b48d..85e9a0ba 100644
--- a/src/lj_ctype.c
+++ b/src/lj_ctype.c
@@ -311,7 +311,7 @@ cTValue *lj_ctype_meta(CTState *cts, CTypeID id, MMS mm)
311{ 311{
312 CType *ct = ctype_get(cts, id); 312 CType *ct = ctype_get(cts, id);
313 cTValue *tv; 313 cTValue *tv;
314 while (ctype_isattrib(ct->info)) { 314 while (ctype_isattrib(ct->info) || ctype_isref(ct->info)) {
315 id = ctype_cid(ct->info); 315 id = ctype_cid(ct->info);
316 ct = ctype_get(cts, id); 316 ct = ctype_get(cts, id);
317 } 317 }