fix cast to uintmax_t

This commit is contained in:
Hiltjo Posthuma 2016-01-06 16:04:37 +01:00
parent ee4c340ce6
commit c750958b95

View file

@ -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);