]> git.armaanb.net Git - stagit.git/commitdiff
fix warning, use intmax_t %ju, thanks stateless!
authorHiltjo Posthuma <hiltjo@codemadness.org>
Wed, 6 Jan 2016 14:19:26 +0000 (15:19 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Wed, 6 Jan 2016 14:19:26 +0000 (15:19 +0100)
stagit.c

index b3b644b262544c314b1b8c5080685c585d0fb287..fc58c0c11e13abee70ac8c3d45e8a6c82ec96929 100644 (file)
--- a/stagit.c
+++ b/stagit.c
@@ -628,7 +628,7 @@ writeblob(git_object *obj, const char *filename, git_off_t filesize)
        writeheader(fp);
        fputs("<p> ", fp);
        xmlencode(fp, filename, strlen(filename));
-       fprintf(fp, " (%" PRIu32 "b)", filesize);
+       fprintf(fp, " (%jub)", filesize);
        fputs("</p><hr/>", 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("</a></td><td class=\"num\">", fp);
-               fprintf(fp, "%" PRIu32, filesize);
+               fprintf(fp, "%ju", filesize);
                fputs("</td></tr>\n", fp);
 
                writeblob(obj, filename, filesize);