diff options
Diffstat (limited to 'codegen.c')
| -rw-r--r-- | codegen.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -81,13 +81,14 @@ static void emit_expr( break; case EXPR_VAR_REF: emit_var_ref(outfile, &node->as._var_ref, storage); + break; } } static void emit_stmt(FILE* outfile, const struct stmt_node* node); static unsigned long long get_type_size(const struct type_node* type) { - if (type->ptr_level > 0) return 8; + if (type->ptr_level > 0) return PTR_SIZE; struct type_def type_def; if (!scope_get_type(scope, &type_def, type->name)) |
