From 813e08acf4e389690830bfb5ff525c9e79bdb362 Mon Sep 17 00:00:00 2001 From: cpq Date: Mon, 5 Jun 2023 10:35:24 +0100 Subject: [PATCH] Fix build --- test/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/main.c b/test/main.c index 6f177ae..d1b5a6f 100644 --- a/test/main.c +++ b/test/main.c @@ -181,7 +181,7 @@ static void test_m(void) { static void test_json(void) { char buf[100]; - char *json = "{ \"a\": -42, \"b\": \"hi\", \"c\": true }"; + const char *json = "{ \"a\": -42, \"b\": \"hi\", \"c\": true }"; int b = 0; assert(json_get_long(json, (int) strlen(json), "$.a", 0) == -42); assert(json_get_str(json, (int) strlen(json), "$.b", buf, sizeof(buf)) == 2);