diff options
author | Camil Staps | 2018-04-03 21:14:37 +0200 |
---|---|---|
committer | Camil Staps | 2018-04-03 21:14:37 +0200 |
commit | b3f9bcbc307e3e8d455ccf560a61dc5129174728 (patch) | |
tree | c1a036d82a25452d8ade3ae29310a699aa809ddd /interpreter/print.c | |
parent | Resolve #11: print end result as soon as it is in HNF (diff) |
Store integers without pointers
Diffstat (limited to 'interpreter/print.c')
-rw-r--r-- | interpreter/print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interpreter/print.c b/interpreter/print.c index d5134c9..67b99e8 100644 --- a/interpreter/print.c +++ b/interpreter/print.c @@ -64,7 +64,7 @@ void print_expression(struct expression *expr) { switch (expr->kind) { case EXPR_INT: - printf("%d", *((int*) expr->var1)); + printf("%ld", (INT) expr->var1); break; case EXPR_NAME: printf("%s", (char*) expr->var1); |