X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=sprinter-sexp.c;h=63b254284b4a6d73861896587b12bc2a6281144f;hp=6891ea4254f82e89b9758f0fb6921901f00377b3;hb=4760b4470c5d5782e52bd1a7761d9975a1db1fec;hpb=045f0e455ac94e2393d0d729c9bbdf3459a4860f 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