From eaf61dbb340fd537162d2e88079a2aa9b9ad0bdc Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Tue, 13 Dec 2016 02:17:57 +0100 Subject: Fixed an issue where printing boolean values in a tree wouldn't work --- lib/dtree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dtree.c b/lib/dtree.c index 32adb0c..11090d8 100644 --- a/lib/dtree.c +++ b/lib/dtree.c @@ -624,7 +624,7 @@ void list_print(dtree *data, const char *offset) /* Print the value now */ if(v_type == LITERAL) printf(" => ['%s']\n", data->payload.list[1]->payload.literal); if(v_type== NUMERIC) printf(" => [%lu]\n", data->payload.list[1]->payload.numeral); - if(k_type == BOOLEAN) printf("%s[%s]", offset, (data->payload.list[1]->payload.boolean) ? "TRUE" : "FALSE"); + if(v_type == BOOLEAN) printf(" => [%s]\n", (data->payload.list[1]->payload.boolean) ? "TRUE" : "FALSE"); if(v_type == LIST || k_type == PAIR) list_print(data->payload.list[1], new_offset); -- cgit v1.2.3