]> git.notmuchmail.org Git - notmuch/blobdiff - sprinter-text.c
sprinter: change integer method to use int64_t
[notmuch] / sprinter-text.c
index 648b54b1e886553cd839ca24f4f5f0a9378aa47b..7b68f98ccbb17e7a494cbc925e954af6347e3b91 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <talloc.h>
@@ -44,11 +45,11 @@ text_string (struct sprinter *sp, const char *val)
 }
 
 static void
-text_integer (struct sprinter *sp, int val)
+text_integer (struct sprinter *sp, int64_t val)
 {
     struct sprinter_text *sptxt = (struct sprinter_text *) sp;
 
-    fprintf (sptxt->stream, "%d", val);
+    fprintf (sptxt->stream, "%"PRId64, val);
 }
 
 static void