]> source.dussan.org Git - jgit.git/commit
Fix offset64 creation for objects at 2 GiB 69/3969/3
authorShawn O. Pearce <spearce@spearce.org>
Sat, 6 Aug 2011 01:18:16 +0000 (18:18 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 8 Aug 2011 23:36:56 +0000 (16:36 -0700)
commit3bac5b1d7d85aba3ec4aea0286eabbc8b326208b
tree9d39de52f8169916e67903219329961872d5e3a2
parent86ecf141b6e94f18702224e60e8992cafe4d02bc
Fix offset64 creation for objects at 2 GiB

The offset32 format is used for objects <= 2^31-1, while the offset64
format is used for all other objects.  This condition was missing
the = needed to ensure an object placed exactly at 2^31 would have
its 64 bit offset in the index.

Change-Id: I293fac0e829c9baa12cb59411dffde666051d6c5
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackIndexWriterV2.java