X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=main.c;h=85a53f4af40e4d02429ee2fdfda597780b7e1f96;hb=181cf50743241895bf64ecc453033b7b0470d230;hp=960b003c15d7b944c2ddc89ee64df618098124c5;hpb=479ca5def5b6bd5c79de488806299064346e2339;p=project%2Fjsonpath.git diff --git a/main.c b/main.c index 960b003..85a53f4 100644 --- a/main.c +++ b/main.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2014 Jo-Philipp Wich + * Copyright (C) 2013-2014 Jo-Philipp Wich * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -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: