-rw-r--r-- | shared.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -307,9 +307,10 @@ static int load_mmfile(mmfile_t *file, const unsigned char *sha1) if (is_null_sha1(sha1)) { file->ptr = (char *)""; file->size = 0; } else { - file->ptr = read_sha1_file(sha1, &type, &file->size); + file->ptr = read_sha1_file(sha1, &type, + (unsigned long *)&file->size); } return 1; } |