summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-05-21 23:25:57 +0200
committerLennart Poettering <lennart@poettering.net>2015-05-21 23:25:57 +0200
commit85dbc30747023db0fdb95dfe48fad6102c726fc2 (patch)
tree475536692f877486eee2fdf1e6caf29c8b6544d9
parentb721c35a28dad961836de44626bcacbe679bb02d (diff)
downloadsystemd-85dbc30747023db0fdb95dfe48fad6102c726fc2.tar.gz
test.json: fix build on x86-32 where int and intmax_t differ
-rw-r--r--src/test/test-json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-json.c b/src/test/test-json.c
index 0be69f88e1..1e3a72729f 100644
--- a/src/test/test-json.c
+++ b/src/test/test-json.c
@@ -192,7 +192,7 @@ int main(int argc, char *argv[]) {
test_one("\"\\udc00\\udc00\"", -EINVAL);
test_one("\"\\ud801\\udc37\"", JSON_STRING, "\xf0\x90\x90\xb7", JSON_END);
- test_one("[1, 2]", JSON_ARRAY_OPEN, JSON_INTEGER, 1, JSON_COMMA, JSON_INTEGER, 2, JSON_ARRAY_CLOSE, JSON_END);
+ test_one("[1, 2]", JSON_ARRAY_OPEN, JSON_INTEGER, (intmax_t) 1, JSON_COMMA, JSON_INTEGER, (intmax_t) 2, JSON_ARRAY_CLOSE, JSON_END);
test_file("{\"k\": \"v\", \"foo\": [1, 2, 3], \"bar\": {\"zap\": null}}", test_1);
test_file("{\"mutant\": [1, null, \"1\", {\"1\": [1, \"1\"]}], \"blah\": 1.27}", test_2);