Fixed: arena push array function
This commit is contained in:
parent
cfa7370f07
commit
bcebc14b5a
|
@ -35,8 +35,7 @@ hash_store_string8_to_key(Table *table, String8 value)
|
||||||
{
|
{
|
||||||
String8 *new_str8 = arena_push(table->ptr_arena, String8);
|
String8 *new_str8 = arena_push(table->ptr_arena, String8);
|
||||||
new_str8->content =
|
new_str8->content =
|
||||||
(u8*) arena_allocate(table->str8_arena, sizeof(u8) * value.length);
|
arena_push_array(table->str8_arena, u8, value.length);
|
||||||
new_str8->length = value.length;
|
|
||||||
|
|
||||||
memory_copy(new_str8->content, value.content, value.length);
|
memory_copy(new_str8->content, value.content, value.length);
|
||||||
table->str8_count += 1;
|
table->str8_count += 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user