summaryrefslogtreecommitdiff
path: root/stagit.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-01-06 16:04:37 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-01-06 16:04:37 +0100
commitc750958b95624fd6bd45f817e255fe19aa412534 (patch)
tree059c11e2a179f86c9740038e1ee14163af35ba39 /stagit.c
parentee4c340ce6d24adf89df21d76e8849296efb0a34 (diff)
fix cast to uintmax_t
Diffstat (limited to 'stagit.c')
-rw-r--r--stagit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stagit.c b/stagit.c
index 817fb19..73eb723 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("<p> ", fp);
xmlencode(fp, filename, strlen(filename));
- fprintf(fp, " (%jub)", filesize);
+ fprintf(fp, " (%jub)", (uintmax_t)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, "%ju", filesize);
+ fprintf(fp, "%ju", (uintmax_t)filesize);
fputs("</td></tr>\n", fp);
writeblob(obj, filename, filesize);