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>
Johannes Schindelin committed
Jul 9, 2026 at 16:49 UTC
075b33feee5236696cb8407eff4fe2d2e8012a4a
1 file changed
+1
-1
archive-zip.c
+1
-1
@@ -206,7 +206,7 @@ static void *zlib_deflate_raw(void *data, unsigned long size,
206
unsigned long *compressed_size)
207
{
208
git_zstream stream;
209
- unsigned long maxsize;
209
+ size_t maxsize;
210
void *buffer;
211
int result;
212