Skip to content

Commit 813e08a

Browse files
committed
Fix build
1 parent 12cf7da commit 813e08a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static void test_m(void) {
181181

182182
static void test_json(void) {
183183
char buf[100];
184-
char *json = "{ \"a\": -42, \"b\": \"hi\", \"c\": true }";
184+
const char *json = "{ \"a\": -42, \"b\": \"hi\", \"c\": true }";
185185
int b = 0;
186186
assert(json_get_long(json, (int) strlen(json), "$.a", 0) == -42);
187187
assert(json_get_str(json, (int) strlen(json), "$.b", buf, sizeof(buf)) == 2);

0 commit comments

Comments
 (0)