From 9128782aa848465c47928d4ce8f40bd3320a5661 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 6 Jan 2016 15:19:26 +0100 Subject: [PATCH] fix warning, use intmax_t %ju, thanks stateless! --- stagit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stagit.c b/stagit.c index b3b644b..fc58c0c 100644 --- a/stagit.c +++ b/stagit.c @@ -628,7 +628,7 @@ writeblob(git_object *obj, const char *filename, git_off_t filesize) writeheader(fp); fputs("

", fp); xmlencode(fp, filename, strlen(filename)); - fprintf(fp, " (%" PRIu32 "b)", filesize); + fprintf(fp, " (%jub)", filesize); fputs("


", fp); if (git_blob_is_binary((git_blob *)obj)) { @@ -734,7 +734,7 @@ writefilestree(FILE *fp, git_tree *tree, const char *branch, const char *path) fputs(".html\">", fp); xmlencode(fp, filename, strlen(filename)); fputs("", fp); - fprintf(fp, "%" PRIu32, filesize); + fprintf(fp, "%ju", filesize); fputs("\n", fp); writeblob(obj, filename, filesize); -- libgit2 1.1.1