git-query

git data extraction tool using c and libgit2

git clone https://9o.is/git/git-query.git

commit 81730f35ec7756a1c8dbbf5671ec260e43fa1116
parent fad47cef011b0e056212dc4234c6db93a95408e8
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed,  6 Jan 2016 16:04:37 +0100

fix cast to uintmax_t

Diffstat:
Mstagit.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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);