1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-23 02:34:49 +00:00

More work on nanbox implementation.

This commit is contained in:
Calvin Rose
2017-11-29 15:17:56 -05:00
parent b568a6bc88
commit eceb6e5a77
16 changed files with 161 additions and 119 deletions

View File

@@ -172,7 +172,7 @@ static void dst_mark_funcdef(DstFuncDef *def) {
for (i = 0; i < count; ++i) {
DstValue v = def->constants[i];
/* Funcdefs use nil literals to store other funcdefs */
if (v.type == DST_NIL) {
if (dst_checktype(v, DST_NIL)) {
dst_mark_funcdef((DstFuncDef *) dst_unwrap_pointer(v));
} else {
dst_mark(v);