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
This commit is contained in:
Scott Ehlert 2007-05-22 03:38:44 +00:00
parent a6f446d4ec
commit a322067b83
2 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@
/> />
<Tool <Tool
Name="VCCLCompilerTool" Name="VCCLCompilerTool"
Optimization="0" Optimization="2"
EnableIntrinsicFunctions="true" EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="1" FavorSizeOrSpeed="1"
OmitFramePointers="true" OmitFramePointers="true"

View File

@ -404,7 +404,6 @@ int main(int argc, char *argv[])
* do compression * do compression
* new block for scoping only * new block for scoping only
*/ */
if (1)
{ {
memfile_t *pOrig = (memfile_t *)spf->handle; memfile_t *pOrig = (memfile_t *)spf->handle;
sp_file_hdr_t *pHdr; sp_file_hdr_t *pHdr;
@ -434,7 +433,8 @@ int main(int argc, char *argv[])
proper = (unsigned char *)pOrig->base + header_size; proper = (unsigned char *)pOrig->base + header_size;
/* get initial size estimate */ /* 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); zcmp = (Bytef *)malloc(pHdr->disksize);
if ((err=compress2(zcmp, if ((err=compress2(zcmp,