From 1d4447bcd888dd0bd20cf4b6dd7f9192145debf0 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Mon, 29 Jun 2026 22:59:28 -0400 Subject: Refactor data structures --- src/native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/native.c') diff --git a/src/native.c b/src/native.c index b8cde3d..7af961b 100644 --- a/src/native.c +++ b/src/native.c @@ -51,7 +51,7 @@ pit_value pit_bytes_new_file(pit_runtime *rt, char *path) { fseek(f, 0, SEEK_END); i64 len = ftell(f); fseek(f, 0, SEEK_SET); - u8 *dest = pit_arena_alloc_bulk(rt->heap, len); + u8 *dest = pit_arena_alloc_array(rt->heap, len); if (!dest) { pit_error(rt, "failed to allocate bytes"); fclose(f); return PIT_NIL; } if ((size_t) len != fread(dest, sizeof(char), (size_t) len, f)) { fclose(f); -- cgit v1.2.3