Merge branch 'fix'

* fix:
  Fix git-pack-objects for 64-bit platforms
This commit is contained in:
Junio C Hamano
2006-05-13 22:24:18 -07:00
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ static void prepare_pack_revindex(struct pack_revindex *rix)
rix->revindex = xmalloc(sizeof(unsigned long) * (num_ent + 1));
for (i = 0; i < num_ent; i++) {
long hl = *((long *)(index + 24 * i));
uint32_t hl = *((uint32_t *)(index + 24 * i));
rix->revindex[i] = ntohl(hl);
}
/* This knows the pack format -- the 20-byte trailer