1
0
Fork 0
mirror of https://github.com/pnx/m16vm synced 2026-06-16 03:44:55 +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:
Henrik Hautakoski 2019-03-29 15:15:50 +01:00
parent 5b1bf5b412
commit 6611095364
No known key found for this signature in database
GPG key ID: 839F3A7EAFAEAFAA

View file

@ -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);
}