aboutsummaryrefslogtreecommitdiff
path: root/interpreter/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'interpreter/print.c')
-rw-r--r--interpreter/print.c2
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);