X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=pack-write.c;h=3513665e1e1be606dd116370fefbbb2a0d781245;hb=1b5b8cf072491e0a43e668c685b782efce9a6f0f;hp=23e19cc1ecb2ed43f2559e45541f24c76ccde6f6;hpb=c7942b91dc1575f2dd5710cfdef1355be993f657;p=thirdparty%2Fgit.git diff --git a/pack-write.c b/pack-write.c index 23e19cc1ec..3513665e1e 100644 --- a/pack-write.c +++ b/pack-write.c @@ -151,13 +151,10 @@ const char *write_idx_file(const char *index_name, struct pack_idx_entry **objec while (nr_large_offset) { struct pack_idx_entry *obj = *list++; uint64_t offset = obj->offset; - uint32_t split[2]; if (!need_large_offset(offset, opts)) continue; - split[0] = htonl(offset >> 32); - split[1] = htonl(offset & 0xffffffff); - hashwrite(f, split, 8); + hashwrite_be64(f, offset); nr_large_offset--; } }