added dict_size parameter to Compressor::Init() so a cast to CLZMA won't be required to pass a dictionary size

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3708 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2004-10-11 14:26:13 +00:00
parent 93f4ad3d6b
commit a33cecb337
6 changed files with 9 additions and 32 deletions

View file

@ -145,7 +145,7 @@ CLZMA::~CLZMA()
}
}
int CLZMA::Init(int level, UINT32 dicSize)
int CLZMA::Init(int level, unsigned int dicSize)
{
End();
@ -185,12 +185,6 @@ int CLZMA::Init(int level, UINT32 dicSize)
return _encoder->SetStreams(this, this, 0, 0) == S_OK ? C_OK : LZMA_INIT_ERROR;
}
int CLZMA::Init(int level)
{
// default dictionary size is 8MB
return Init(level, 8 << 20);
}
int CLZMA::End()
{
// has compressor not finished?