fix cast to uintmax_t
1 files changed, 2 insertions(+), 2 deletions(-) | |||
---|---|---|---|
M | stagit.c | +2 | -2 |
1@@ -628,7 +628,7 @@ writeblob(git_object *obj, const char *filename, git_off_t filesize)
2 writeheader(fp);
3 fputs("<p> ", fp);
4 xmlencode(fp, filename, strlen(filename));
5- fprintf(fp, " (%jub)", filesize);
6+ fprintf(fp, " (%jub)", (uintmax_t)filesize);
7 fputs("</p><hr/>", fp);
8
9 if (git_blob_is_binary((git_blob *)obj)) {
10@@ -734,7 +734,7 @@ writefilestree(FILE *fp, git_tree *tree, const char *branch, const char *path)
11 fputs(".html\">", fp);
12 xmlencode(fp, filename, strlen(filename));
13 fputs("</a></td><td class=\"num\">", fp);
14- fprintf(fp, "%ju", filesize);
15+ fprintf(fp, "%ju", (uintmax_t)filesize);
16 fputs("</td></tr>\n", fp);
17
18 writeblob(obj, filename, filesize);