-rw-r--r-- | shared.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -303,17 +303,18 @@ void cgit_diff_tree_cb(struct diff_queue_struct *q, static int load_mmfile(mmfile_t *file, const unsigned char *sha1) { enum object_type type; 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; } /* * Receive diff-buffers from xdiff and concatenate them as * needed across multiple callbacks. * |