From c97d129c4d9549f5296d7975f43b2942ef820be2 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 15 Jan 2007 23:10:59 +0000 Subject: [PATCH] temporarily removed optimization that is breaking zlib somehow --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40300 --- sourcepawn/compiler/msvc8/spcomp.vcproj | 9 +++++++++ sourcepawn/compiler/pawncc.c | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/sourcepawn/compiler/msvc8/spcomp.vcproj b/sourcepawn/compiler/msvc8/spcomp.vcproj index 34f0e739..bc6dacc2 100644 --- a/sourcepawn/compiler/msvc8/spcomp.vcproj +++ b/sourcepawn/compiler/msvc8/spcomp.vcproj @@ -116,6 +116,7 @@ /> + + + base + header_size; /* get initial size estimate */ - pHdr->disksize = (uint32_t)compressBound(pHdr->imagesize); + pHdr->disksize = (uint32_t)compressBound(pHdr->imagesize) * 2; zcmp = (Bytef *)malloc(pHdr->disksize); if ((err=compress2(zcmp, @@ -451,7 +451,7 @@ int main(int argc, char *argv[]) != Z_OK) { free(zcmp); - pc_printf("Unable to compress (Z): error %d", err); + pc_printf("Unable to compress (Z): error %d\n", err); pc_printf("Falling back to no compression."); memfile_write(bin_file, proper,