From a322067b838bca97b688c4b19dd6d2c757fbae2b Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Tue, 22 May 2007 03:38:44 +0000 Subject: [PATCH] Reduced size of Windows compiler binary a tad (Maybe it's just me, but this zlib compression issue doesn't look like a msvc8 codegen bug afterall) --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40834 --- sourcepawn/compiler/msvc8/spcomp.vcproj | 2 +- sourcepawn/compiler/pawncc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sourcepawn/compiler/msvc8/spcomp.vcproj b/sourcepawn/compiler/msvc8/spcomp.vcproj index 84416348..a2570592 100644 --- a/sourcepawn/compiler/msvc8/spcomp.vcproj +++ b/sourcepawn/compiler/msvc8/spcomp.vcproj @@ -116,7 +116,7 @@ /> handle; sp_file_hdr_t *pHdr; @@ -434,7 +433,8 @@ int main(int argc, char *argv[]) proper = (unsigned char *)pOrig->base + header_size; /* get initial size estimate */ - pHdr->disksize = (uint32_t)compressBound(pHdr->imagesize) * 2; + disksize = compressBound(pHdr->imagesize); + pHdr->disksize = (uint32_t)disksize; zcmp = (Bytef *)malloc(pHdr->disksize); if ((err=compress2(zcmp,