summaryrefslogtreecommitdiff
path: root/pit/src/runtime/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'pit/src/runtime/gc.c')
-rw-r--r--pit/src/runtime/gc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pit/src/runtime/gc.c b/pit/src/runtime/gc.c
index 671202d..0880592 100644
--- a/pit/src/runtime/gc.c
+++ b/pit/src/runtime/gc.c
@@ -76,10 +76,8 @@ void pit_gc(pit_runtime *rt) {
break;
}
case PIT_VALUE_HEAVY_SORT_FUNC:
- h->in.func.env = gc_copy_value(rt, h->in.func.env);
- h->in.func.args = gc_copy_value(rt, h->in.func.args);
- h->in.func.arg_rest_nm = gc_copy_value(rt, h->in.func.arg_rest_nm);
- h->in.func.body = gc_copy_value(rt, h->in.func.body);
+ h->in.func.nm = gc_copy_value(rt, h->in.func.nm);
+ h->in.func.closure = gc_copy_value(rt, h->in.func.closure);
break;
case PIT_VALUE_HEAVY_SORT_NATIVEFUNC: break;
case PIT_VALUE_HEAVY_SORT_NATIVEDATA: