Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--convert-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/convert-cache.c b/convert-cache.c
index 4d34d2d57e..93e477ad3b 100644
--- a/convert-cache.c
+++ b/convert-cache.c
@@ -99,7 +99,7 @@ static int write_subdirectory(void *buffer, unsigned long size, const char *base
continue;
}
- newlen += sprintf(new + newlen, "%o %.*s", S_IFDIR, slash - path, path);
+ newlen += sprintf(new + newlen, "%o %.*s", S_IFDIR, (int)(slash - path), path);
new[newlen++] = 0;
sha1 = (unsigned char *)(new + newlen);
newlen += 20;