Skip to content

Commit 0622f79

Browse files
committed
Merge branch 'nf/maint-fix-index-ext-len-on-be64' into maint
* nf/maint-fix-index-ext-len-on-be64: read_index(): fix reading extension size on BE 64-bit archs
2 parents 21a0d9b + 07cc8ec commit 0622f79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

read-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ int read_index_from(struct index_state *istate, const char *path)
13221322
* extension name (4-byte) and section length
13231323
* in 4-byte network byte order.
13241324
*/
1325-
unsigned long extsize;
1325+
uint32_t extsize;
13261326
memcpy(&extsize, (char *)mmap + src_offset + 4, 4);
13271327
extsize = ntohl(extsize);
13281328
if (read_index_extension(istate,

0 commit comments

Comments
 (0)