From d459903efc2f88531153ec0c221ac330a66864a2 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sat, 25 Oct 2025 19:22:44 +0100 Subject: [PATCH] ds: array: update to_string() to surround string values in quotes --- ds/array.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ds/array.c b/ds/array.c index e8be7ad..754ed08 100644 --- a/ds/array.c +++ b/ds/array.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include @@ -323,8 +324,7 @@ static void array_to_string(const b_object *obj, b_stream *out) for (size_t i = 0; i < array->ar_len; i++) { b_object *value = array->ar_data[i]; - bool is_string - = false; // b_object_is_type(value, B_TYPE_STRING); + bool is_string = b_object_is_type(value, B_TYPE_STRING); if (is_string) { b_stream_write_char(out, '"');