Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
cpq committed Jun 5, 2023
1 parent 12cf7da commit 813e08a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 813e08a

Please sign in to comment.