From 6611095364b3562cb4eed17cec039916029b8488 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 29 Mar 2019 15:15:50 +0100 Subject: [PATCH] as/parser.c: fixed a bug where address of array (uint_t **) was passed to codegen_emit() (that expects uint_t*) --- as/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/as/parser.c b/as/parser.c index 7d9dcfa..a8a6b70 100644 --- a/as/parser.c +++ b/as/parser.c @@ -252,7 +252,7 @@ int parse(FILE *source_fd, FILE *dest_fd) { struct ast_instr *instr = ast.instr.base + i; uint8_t code[2] = { 0 }; - codegen_emit(instr, ast.symbols, &code); + codegen_emit(instr, ast.symbols, code); fwrite(&code, sizeof(code), 1, dest_fd); }