From: Jo-Philipp Wich Date: Wed, 1 Jun 2016 14:47:00 +0000 (+0200) Subject: cli: properly format 64bit values X-Git-Url: http://git.openwrt.org/?p=project%2Fjsonpath.git;a=commitdiff_plain;h=7151885df6ac2554c07cc6047dde7c4eb253ce87 cli: properly format 64bit values Signed-off-by: Jo-Philipp Wich --- diff --git a/main.c b/main.c index 960b003..bbb2bbd 100644 --- a/main.c +++ b/main.c @@ -16,6 +16,7 @@ #include #include +#include #include #include @@ -211,7 +212,7 @@ export_value(struct list_head *matches, const char *prefix, const char *sep, case json_type_int: print_separator(sep, &sc, sl); - printf("%d", json_object_get_int(item->jsobj)); + printf("%" PRId64, json_object_get_int64(item->jsobj)); break; case json_type_double: