]> git.ipfire.org Git - thirdparty/git.git/commit
archive-zip: widen `zlib_deflate_raw()`'s maxsize local to `size_t`
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 9 Jul 2026 16:49:35 +0000 (16:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Jul 2026 21:55:24 +0000 (14:55 -0700)
commit075b33feee5236696cb8407eff4fe2d2e8012a4a
tree6271ee2481b296828d3305512acbbafff6d77f29
parent9647dcedd7749e675d585d32d7ea34f2b8c90a38
archive-zip: widen `zlib_deflate_raw()`'s maxsize local to `size_t`

Prep for the upcoming `git_deflate_bound()` widening to `size_t`: the
local that catches its return needs to be `size_t` too, otherwise the
widening would introduce a silent Windows narrowing here. No semantic
effect with the current unsigned-long-returning `git_deflate_bound()`
(`size_t == unsigned long` on this caller's platforms today).

Assisted-by: Opus 4.7
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive-zip.c