Skip to content

Commit 85dbc30

Browse files
committed
test.json: fix build on x86-32 where int and intmax_t differ
1 parent b721c35 commit 85dbc30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/test-json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ int main(int argc, char *argv[]) {
192192
test_one("\"\\udc00\\udc00\"", -EINVAL);
193193
test_one("\"\\ud801\\udc37\"", JSON_STRING, "\xf0\x90\x90\xb7", JSON_END);
194194

195-
test_one("[1, 2]", JSON_ARRAY_OPEN, JSON_INTEGER, 1, JSON_COMMA, JSON_INTEGER, 2, JSON_ARRAY_CLOSE, JSON_END);
195+
test_one("[1, 2]", JSON_ARRAY_OPEN, JSON_INTEGER, (intmax_t) 1, JSON_COMMA, JSON_INTEGER, (intmax_t) 2, JSON_ARRAY_CLOSE, JSON_END);
196196

197197
test_file("{\"k\": \"v\", \"foo\": [1, 2, 3], \"bar\": {\"zap\": null}}", test_1);
198198
test_file("{\"mutant\": [1, null, \"1\", {\"1\": [1, \"1\"]}], \"blah\": 1.27}", test_2);

0 commit comments

Comments
 (0)