Skip to content

Commit 183c582

Browse files
author
Hannes Gredler
committed
make test_json compile without warnings on 64-Bit platforms
1 parent a350027 commit 183c582

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ config.status
44
json.o
55
libjsonparser.a
66
libjsonparser.so
7+
test_json

examples/test_json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static void process_value(json_value* value, int depth)
9999
process_array(value, depth+1);
100100
break;
101101
case json_integer:
102-
printf("int: %d\n", value->u.integer);
102+
printf("int: %10" PRId64 "\n", value->u.integer);
103103
break;
104104
case json_double:
105105
printf("double: %f\n", value->u.dbl);

0 commit comments

Comments
 (0)