summaryrefslogtreecommitdiff
path: root/read-cache.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-12-27 18:42:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-12-27 18:42:00 (GMT)
commit0622f79d8e7e91efc5870afe0ce134e1cee9f9f0 (patch)
tree30926e9f77a1acd3fd0bd351eb0e432bc5e697fa /read-cache.c
parent21a0d9b42d9cc9560c66fb3cfa82a2a449de8b39 (diff)
parent07cc8ecac0313c571cb9838585b376df86c80563 (diff)
downloadgit-0622f79d8e7e91efc5870afe0ce134e1cee9f9f0.zip
git-0622f79d8e7e91efc5870afe0ce134e1cee9f9f0.tar.gz
git-0622f79d8e7e91efc5870afe0ce134e1cee9f9f0.tar.bz2
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
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c
index 1bbaf1c..9033dd3 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -1322,7 +1322,7 @@ int read_index_from(struct index_state *istate, const char *path)
* extension name (4-byte) and section length
* in 4-byte network byte order.
*/
- unsigned long extsize;
+ uint32_t extsize;
memcpy(&extsize, (char *)mmap + src_offset + 4, 4);
extsize = ntohl(extsize);
if (read_index_extension(istate,