diff options
author | Katharina Fey <kookie@spacekookie.de> | 2016-12-13 02:17:57 +0100 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2019-06-04 20:21:53 +0200 |
commit | eaf61dbb340fd537162d2e88079a2aa9b9ad0bdc (patch) | |
tree | ce8009729c6c7a2422e45527d6479b0eaa277d55 | |
parent | e7ab531686126ebfc8b7e46996447b15f3ad447a (diff) |
Fixed an issue where printing boolean values in a tree wouldn't work
-rw-r--r-- | lib/dtree.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |