sha1_file: guard against invalid loose subdirectory numbers
[gitweb.git] / builtin / fsck.c
index b5e13a45560f9338a65191c22d213f33052bf9b9..26869513816608feb458d5e63b8548e32954145e 100644 (file)
@@ -537,7 +537,7 @@ static int fsck_cruft(const char *basename, const char *path, void *data)
        return 0;
 }
 
-static int fsck_subdir(int nr, const char *path, void *progress)
+static int fsck_subdir(unsigned int nr, const char *path, void *progress)
 {
        display_progress(progress, nr + 1);
        return 0;