Skip to content

Commit 41e6b91

Browse files
committed
vcs-svn: add missing cast to printf argument
gcc -m32 correctly warns: vcs-svn/fast_export.c: In function 'fast_export_commit': vcs-svn/fast_export.c:54:2: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'unsigned int' [-Wformat] Fix it. Signed-off-by: Jonathan Nieder <[email protected]>
1 parent 195b7ca commit 41e6b91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vcs-svn/fast_export.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ void fast_export_commit(uint32_t revision, const char *author,
5151
*author ? author : "nobody",
5252
*author ? author : "nobody",
5353
*uuid ? uuid : "local", timestamp);
54-
printf("data %"PRIuMAX"\n", log->len + strlen(gitsvnline));
54+
printf("data %"PRIuMAX"\n",
55+
(uintmax_t) (log->len + strlen(gitsvnline)));
5556
fwrite(log->buf, log->len, 1, stdout);
5657
printf("%s\n", gitsvnline);
5758
if (!first_commit_done) {

0 commit comments

Comments
 (0)