fix __va_args__ nonsense in rdi_from_dwarf; fix incorrect mask check in linux os_file_open

This commit is contained in:
Ryan Fleury
2024-12-16 11:41:23 -08:00
parent c66d705791
commit 8f91ec4f88
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ os_file_open(OS_AccessFlags flags, String8 path)
Temp scratch = scratch_begin(0, 0); Temp scratch = scratch_begin(0, 0);
String8 path_copy = push_str8_copy(scratch.arena, path); String8 path_copy = push_str8_copy(scratch.arena, path);
int lnx_flags = 0; int lnx_flags = 0;
if(flags & (OS_AccessFlag_Read|OS_AccessFlag_Write)) if(flags & OS_AccessFlag_Read && flags & OS_AccessFlag_Write)
{ {
lnx_flags = O_RDWR; lnx_flags = O_RDWR;
} }
+1 -1
View File
@@ -432,7 +432,7 @@ entry_point(CmdLine *cmd_line)
#define PARSE_CHECK_ERROR(p, fmt, ...) do{ if ((p) == 0){ \ #define PARSE_CHECK_ERROR(p, fmt, ...) do{ if ((p) == 0){ \
successful_parse = 0; \ successful_parse = 0; \
fprintf(stdout, "error(parsing): " fmt "\n", __VA_ARGS__); \ fprintf(stdout, "error(parsing): " fmt "\n",##__VA_ARGS__); \
} }while(0) } }while(0)
// parse elf // parse elf