Skip to content

Commit f220fb6

Browse files
aeglLinus Torvalds
authored andcommitted
[PATCH] Fix warning in convert-cache
gcc 3.4.3 kicks out this warning: convert-cache.c: In function `write_subdirectory': convert-cache.c:102: warning: field precision is not type int (arg 4) Signed-off-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 7e8c174 commit f220fb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convert-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static int write_subdirectory(void *buffer, unsigned long size, const char *base
9999
continue;
100100
}
101101

102-
newlen += sprintf(new + newlen, "%o %.*s", S_IFDIR, slash - path, path);
102+
newlen += sprintf(new + newlen, "%o %.*s", S_IFDIR, (int)(slash - path), path);
103103
new[newlen++] = 0;
104104
sha1 = (unsigned char *)(new + newlen);
105105
newlen += 20;

0 commit comments

Comments
 (0)