[PATCH 3/4] split core-git.txt and update
[gitweb.git] / convert-cache.c
index 4d34d2d57ecda02aea70fab008fab32f5a4391b0..93e477ad3b26ab5bb32fe1b638d5ba77075c1d4b 100644 (file)
@@ -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;