X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=sha1_file.c;h=223001033c30eed20d7c5ee59719bffd25036ded;hb=fbd01abf50488d8ed94c36bdd5bfc2a4ddafb8a2;hp=631a605201e3a737e8e3db25f85f01a228b01282;hpb=5f7f211a54cb62fba4f017cdf3b9bc0c3a7843e1;p=git.git diff --git a/sha1_file.c b/sha1_file.c index 631a6052..22300103 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -1161,7 +1161,7 @@ int find_pack_entry_one(const unsigned char *sha1, int mi = (lo + hi) / 2; int cmp = memcmp(index + 24 * mi + 4, sha1, 20); if (!cmp) { - e->offset = ntohl(*((uint32_t *)(index + 24 * mi))); + e->offset = ntohl(*((unsigned int *)(index + 24 * mi))); memcpy(e->sha1, sha1, 20); e->p = p; return 1;