diff options
| author | Quentin Ladevie <qladevie@virtuos.com.cn> | 2024-08-23 14:02:40 +0200 |
|---|---|---|
| committer | Quentin Ladevie <qladevie@virtuos.com.cn> | 2024-08-23 14:02:40 +0200 |
| commit | 41d163a8a9be2f6d94e42157ad695fbe2cd000ae (patch) | |
| tree | c09d7fccb0a182d79b306f5c21157c37b6c616e9 /src/main.c | |
| parent | d3abac5411a2961d8bbef6eef56d1201f2113f40 (diff) | |
Fix compiler erros with MSVC pro
Fix atou64
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -141,8 +141,7 @@ struct ast_node* parse_primary(struct token* tokens, struct ast_node* nodes) { } } -struct ast_node* parse_command(struct token* tokens, struct ast_node* nodes) -{ +struct ast_node* parse_command(struct token* tokens, struct ast_node* nodes) { struct ast_node* cur_node = &nodes[0]; struct token* cur_token = &tokens[0]; switch(cur_token->type) { @@ -242,7 +241,7 @@ void run(struct ast_node* root) { process_commands = FALSE; } else if (cur_node.token->type == TOKEN_DUMP_MEMORY) { u64 addr = eval_number(cur_node.right); - u8 buf[16U] = {}; + u8 buf[16U] = { 0 }; size_t b_read = 0U; HRESULT hr = ReadProcessMemory( |
