aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/ints.c
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-16 15:11:36 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-16 15:11:36 +0000
commit0bb62e06106eca12a8de92beedfe7000269199cb (patch)
tree23a128c23c86311f25d18758b8d329f5e05bbedc /runtime/src/ints.c
parent297b999d2a76e9f264295a3cf47111937aaa3482 (diff)
Allocate ints using GC alloc
Diffstat (limited to 'runtime/src/ints.c')
-rw-r--r--runtime/src/ints.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/src/ints.c b/runtime/src/ints.c
index 4e385ae2..2eaf5e0f 100644
--- a/runtime/src/ints.c
+++ b/runtime/src/ints.c
@@ -1,7 +1,6 @@
#include <stdbool.h>
#include "./patio/patio.h"
-#include "./alloc.h"
#include "./gc.h"
#include "./primitives.h"
@@ -11,7 +10,7 @@ struct ShedInt {
};
ShedObject shed__runtime__int_create(PatioInt value) {
- struct ShedInt* result = shed__runtime__alloc(sizeof(struct ShedInt));
+ struct ShedInt* result = shed__runtime__gc_alloc(sizeof(struct ShedInt), 0, 0);
result->value = value;
return (ShedObject) result;
}