multi-pack-index: fix 32-bit vs 64-bit size check
commitd8ac9ee109ade79783ea398200219960d352f503
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 13 Sep 2018 18:02:23 +0000 (13 11:02 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Sep 2018 20:49:41 +0000 (17 13:49 -0700)
treee7bcbfc7fbdc210e129622e0c128c68b8a0d424a
parent55c5648d804cea734f402c015ec9d2005373804e
multi-pack-index: fix 32-bit vs 64-bit size check

When loading a 64-bit offset, we intend to check that off_t can store
the resulting offset. However, the condition accidentally checks the
32-bit offset to see if it is smaller than a 64-bit value. Fix it,
and this will be covered by a test in the 'git multi-pack-index verify'
command in a later commit.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
midx.c