]> git.notmuchmail.org Git - notmuch/blobdiff - sprinter-sexp.c
sprinter: change integer method to use int64_t
[notmuch] / sprinter-sexp.c
index 6891ea4254f82e89b9758f0fb6921901f00377b3..35c007d5a25f55d7bcebae9c588b5a6d35d1a615 100644 (file)
@@ -18,6 +18,7 @@
  * Author: Peter Feigl <peter.feigl@gmx.at>
  */
 
+#include <inttypes.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <talloc.h>
@@ -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