X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=sprinter-json.c;h=c7f4851cdd53bc6231d7a56e1d19e80834a09536;hp=c6ec857720d9e6acd0c0c4b9410afaa391249606;hb=14c4f9441d7fe0893003a5e793e19f1e55c9f73f;hpb=c3a683299d4c27d6eadaacf4fb516f73a6c69fc3 diff --git a/sprinter-json.c b/sprinter-json.c index c6ec8577..c7f4851c 100644 --- a/sprinter-json.c +++ b/sprinter-json.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -124,11 +125,11 @@ json_string (struct sprinter *sp, const char *val) } static void -json_integer (struct sprinter *sp, int val) +json_integer (struct sprinter *sp, int64_t val) { struct sprinter_json *spj = json_begin_value (sp); - fprintf (spj->stream, "%d", val); + fprintf (spj->stream, "%" PRId64, val); } static void