aboutsummaryrefslogtreecommitdiff
path: root/interpreter/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'interpreter/print.c')
-rw-r--r--interpreter/print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/interpreter/print.c b/interpreter/print.c
index 67b99e8..eafbf7f 100644
--- a/interpreter/print.c
+++ b/interpreter/print.c
@@ -204,8 +204,8 @@ void print_node_to_file(struct node *node, FILE *f, struct visited_nodes *visite
switch (node->kind) {
case NODE_INT:
- fprintf(f, "%" PRIuPTR " [shape=diamond,label=\"%d\"];\n",
- (uintptr_t) node, *((int*) node->var1));
+ fprintf(f, "%" PRIuPTR " [shape=diamond,label=\"%ld\"];\n",
+ (uintptr_t) node, (INT) node->var1);
break;
case NODE_NAME: