Introduce the allocator stuff again
This commit is contained in:
@@ -55,7 +55,7 @@ bigint_copy(Arena *allocator, BigInt *src){
|
||||
dest.digit_count = src->digit_count;
|
||||
|
||||
count_bigint_alloc();
|
||||
dest.digits = arena_push_array(allocator, uint64_t, dest.digit_count, AF_ZeroMemory);
|
||||
dest.digits = allocate_array(allocator, uint64_t, dest.digit_count);
|
||||
memcpy(dest.digits, src->digits, sizeof(uint64_t) * dest.digit_count);
|
||||
return dest;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user