1
0
Fork 0

Fixed: arena push array function

Browse Source
This commit is contained in:
rhuibertsjr 2024-04-13 14:18:03 +02:00
parent cfa7370f07
commit bcebc14b5a

View File

@ -35,8 +35,7 @@ hash_store_string8_to_key(Table *table, String8 value)
{
String8 *new_str8 = arena_push(table->ptr_arena, String8);
new_str8->content =
(u8*) arena_allocate(table->str8_arena, sizeof(u8) * value.length);
new_str8->length = value.length;
arena_push_array(table->str8_arena, u8, value.length);
memory_copy(new_str8->content, value.content, value.length);
table->str8_count += 1;