Commit 49840056da4da43d3bb7263efd9d141466de9f97

Edward Thomson 2015-06-30T14:20:31

diff: use size_t format

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/diff_print.c b/src/diff_print.c
index 546488c..d406a44 100644
--- a/src/diff_print.c
+++ b/src/diff_print.c
@@ -336,7 +336,7 @@ static int format_binary(
 		"delta" : "literal";
 	const char *scan, *end;
 
-	git_buf_printf(pi->buf, "%s %lu\n", typename, inflatedlen);
+	git_buf_printf(pi->buf, "%s %" PRIuZ "\n", typename, inflatedlen);
 	pi->line.num_lines++;
 
 	for (scan = data, end = data + datalen; scan < end; ) {