From 877f05488792f79f5c1b20e094fe027473ae9901 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sun, 27 May 2018 01:10:25 +0200 Subject: Fix printing of integers in debug graphs --- interpreter/print.c | 4 ++-- 1 file 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: -- cgit v1.2.3