From 7151885df6ac2554c07cc6047dde7c4eb253ce87 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 1 Jun 2016 16:47:00 +0200 Subject: [PATCH] cli: properly format 64bit values Signed-off-by: Jo-Philipp Wich --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.25.1