mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 13:58:40 +00:00
fix arena usage
This commit is contained in:
+1
-1
@@ -957,7 +957,7 @@ lnk_obj_from_res_file_list(TP_Context *tp,
|
|||||||
String8 obj_name)
|
String8 obj_name)
|
||||||
{
|
{
|
||||||
ProfBeginFunction();
|
ProfBeginFunction();
|
||||||
Temp scratch = scratch_begin(0,0);
|
Temp scratch = scratch_begin(&arena,1);
|
||||||
|
|
||||||
Assert(res_data_list.node_count == res_path_list.node_count);
|
Assert(res_data_list.node_count == res_path_list.node_count);
|
||||||
|
|
||||||
|
|||||||
@@ -923,7 +923,7 @@ lnk_config_from_cmd_line(Arena *arena, String8List raw_cmd_line)
|
|||||||
|
|
||||||
LNK_Config *config = push_array(arena, LNK_Config, 1);
|
LNK_Config *config = push_array(arena, LNK_Config, 1);
|
||||||
config->raw_cmd_line = raw_cmd_line;
|
config->raw_cmd_line = raw_cmd_line;
|
||||||
config->work_dir = os_get_current_path(scratch.arena);
|
config->work_dir = os_get_current_path(arena);
|
||||||
config->build_imp_lib = 1;
|
config->build_imp_lib = 1;
|
||||||
config->build_exp = 1;
|
config->build_exp = 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user