summaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ltests.c b/ltests.c
index 314505c3..63ad4498 100644
--- a/ltests.c
+++ b/ltests.c
@@ -519,6 +519,10 @@ static void checkgraylist (global_State *g, GCObject *o) {
case LUA_VCCL: o = gco2ccl(o)->gclist; break;
case LUA_VTHREAD: o = gco2th(o)->gclist; break;
case LUA_VPROTO: o = gco2p(o)->gclist; break;
+ case LUA_VUSERDATA:
+ lua_assert(gco2u(o)->nuvalue > 0);
+ o = gco2u(o)->gclist;
+ break;
default: lua_assert(0); /* other objects cannot be in a gray list */
}
}