X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=pack-objects.c;h=21ee572f48287b36628a027ab265ab58b85c90af;hb=6ecc321ba5d8f89a8dd0a9a11d264d03ab624dc1;hp=be7a2008c52f582626dd18b47372a4765c8bd39c;hpb=d55e0fff1fadf5fcbaa71dccd03e44f3ab610b66;p=git.git diff --git a/pack-objects.c b/pack-objects.c index be7a2008..21ee572f 100644 --- a/pack-objects.c +++ b/pack-objects.c @@ -99,7 +99,7 @@ static int reused_delta = 0; static int pack_revindex_ix(struct packed_git *p) { - unsigned int ui = (unsigned int) p; + unsigned long ui = (unsigned long)(long)p; int i; ui = ui ^ (ui >> 16); /* defeat structure alignment */ @@ -768,7 +768,7 @@ static int sha1_sort(const struct object_entry *a, const struct object_entry *b) return memcmp(a->sha1, b->sha1, 20); } -static struct object_entry **create_final_object_list() +static struct object_entry **create_final_object_list(void) { struct object_entry **list; int i, j;