X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=sprinter-sexp.c;h=63b254284b4a6d73861896587b12bc2a6281144f;hb=e823d05ae6dc920d4fc9abf774c3d2575d891d7b;hp=6891ea4254f82e89b9758f0fb6921901f00377b3;hpb=c3a683299d4c27d6eadaacf4fb516f73a6c69fc3;p=notmuch diff --git a/sprinter-sexp.c b/sprinter-sexp.c index 6891ea42..63b25428 100644 --- a/sprinter-sexp.c +++ b/sprinter-sexp.c @@ -18,6 +18,7 @@ * Author: Peter Feigl */ +#include #include #include #include @@ -161,11 +162,11 @@ sexp_keyword (struct sprinter *sp, const char *val) } static void -sexp_integer (struct sprinter *sp, int val) +sexp_integer (struct sprinter *sp, int64_t val) { struct sprinter_sexp *sps = sexp_begin_value (sp); - fprintf (sps->stream, "%d", val); + fprintf (sps->stream, "%" PRId64, val); } static void