mirror of
https://github.com/pnx/m16vm
synced 2026-07-04 11:43:40 +02:00
as/parser.c: fixed a bug where address of array (uint_t **) was passed to codegen_emit() (that expects uint_t*)
This commit is contained in:
parent
5b1bf5b412
commit
6611095364
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ int parse(FILE *source_fd, FILE *dest_fd) {
|
||||||
struct ast_instr *instr = ast.instr.base + i;
|
struct ast_instr *instr = ast.instr.base + i;
|
||||||
uint8_t code[2] = { 0 };
|
uint8_t code[2] = { 0 };
|
||||||
|
|
||||||
codegen_emit(instr, ast.symbols, &code);
|
codegen_emit(instr, ast.symbols, code);
|
||||||
|
|
||||||
fwrite(&code, sizeof(code), 1, dest_fd);
|
fwrite(&code, sizeof(code), 1, dest_fd);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue