On Mon, Aug 07, 2017 at 09:39:12PM +0200, Johannes Schindelin wrote:
If you want to work on data in memory, then size_t is the appropriate data
type. We already use it elsewhere. Let's use it here, too, without the
intermediate bump from the incorrect `int` to the equally incorrect
`long`.
I disagree with "We already use it elsewhere.". The whole delta code uses "unsigned long" -
look at delta.h. Look at unpack-objects.c. Or cache.h. Or pack-objects.c. Or index-pack.c.
Other possible cases:
git grep "unsigned long" |grep size
So the codebase still suggests, that "unsigned long" is the data type for storing object sizes.
I would be fine with resubmitting a patch using size_t/off_t for the touched parts - changing the whole
core code is a too invasive change for a bug fix.
Regards,
Martin