summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--shared.c3
-rw-r--r--ui-tree.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/shared.c b/shared.c
index 1cd60a2..343a4f9 100644
--- a/shared.c
+++ b/shared.c
@@ -310,3 +310,4 @@ static int load_mmfile(mmfile_t *file, const unsigned char *sha1)
} else {
- file->ptr = read_sha1_file(sha1, &type, &file->size);
+ file->ptr = read_sha1_file(sha1, &type,
+ (unsigned long *)&file->size);
}
diff --git a/ui-tree.c b/ui-tree.c
index 15d1f5a..d6bcec3 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -17,3 +17,3 @@ static void print_object(const unsigned char *sha1, char *path)
enum object_type type;
- unsigned char *buf;
+ char *buf;
unsigned long size, lineno, start, idx;