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:
parent
a6f446d4ec
commit
a322067b83
@ -116,7 +116,7 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
Optimization="2"
|
||||
EnableIntrinsicFunctions="true"
|
||||
FavorSizeOrSpeed="1"
|
||||
OmitFramePointers="true"
|
||||
|
@ -404,7 +404,6 @@ int main(int argc, char *argv[])
|
||||
* do compression
|
||||
* new block for scoping only
|
||||
*/
|
||||
if (1)
|
||||
{
|
||||
memfile_t *pOrig = (memfile_t *)spf->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,
|
||||
|
Loading…
Reference in New Issue
Block a user