remove obsolete /opt/local include/lib directories on mac os x
[oweals/jsonpath.git] / main.c
diff --git a/main.c b/main.c
index 960b003c15d7b944c2ddc89ee64df618098124c5..85a53f4af40e4d02429ee2fdfda597780b7e1f96 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013-2014 Jo-Philipp Wich <jow@openwrt.org>
+ * Copyright (C) 2013-2014 Jo-Philipp Wich <jo@mein.io>
  *
  * 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 <stdio.h>
 #include <stdbool.h>
+#include <stdint.h>
 #include <unistd.h>
 #include <errno.h>
 
@@ -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: