From d073ffa0a26256a94c5e1ab53b50cc147631081f Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Thu, 17 Dec 2015 19:53:07 +0100 Subject: [PATCH] file_size is uint32_t on latest libgit2, thanks uggedal for reporting it! --- urmoms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/urmoms.c b/urmoms.c index 81ea49e..66f3b95 100644 --- a/urmoms.c +++ b/urmoms.c @@ -580,7 +580,7 @@ writeblob(const git_index_entry *entry) fp = efopen(fpath, "w+b"); writeheader(fp); - fprintf(fp, "

%s (%" PRIu64 "b)


", entry->path, entry->file_size); + fprintf(fp, "

%s (%" PRIu32 "b)


", entry->path, entry->file_size); if (git_blob_is_binary((git_blob *)obj)) { fprintf(fp, "

Binary file

\n"); } else { @@ -621,7 +621,7 @@ writefiles(FILE *fp) fputs(".html\">", fp); xmlencode(fp, entry->path, strlen(entry->path)); fputs("", fp); - fprintf(fp, "%" PRIu64, entry->file_size); + fprintf(fp, "%" PRIu32, entry->file_size); fputs("\n", fp); writeblob(entry); -- libgit2 1.1.1