mirror of
https://github.com/emmanuel-marty/lzsa.git
synced 2025-01-06 07:32:57 +00:00
Fixes
This commit is contained in:
parent
2e48e926a1
commit
d564c1ecb8
@ -474,7 +474,7 @@ static int do_self_test(const unsigned int nOptions, const int nMinMatchSize, in
|
||||
float fMatchProbability;
|
||||
|
||||
fprintf(stdout, "size %zd", nGeneratedDataSize);
|
||||
for (fMatchProbability = ((nOptions & OPT_RAW) ? 0.5f : 0.1f); fMatchProbability <= 0.995f; fMatchProbability += fProbabilitySizeStep) {
|
||||
for (fMatchProbability = ((nOptions & OPT_RAW) ? 0.5f : 0); fMatchProbability <= 0.995f; fMatchProbability += fProbabilitySizeStep) {
|
||||
int nNumLiteralValues[12] = { 1, 2, 3, 15, 30, 56, 96, 137, 178, 191, 255, 256 };
|
||||
float fXorProbability;
|
||||
|
||||
|
@ -106,7 +106,7 @@ size_t lzsa_compress_inmem(const unsigned char *pInputData, unsigned char *pOutB
|
||||
|
||||
if ((nFlags & LZSA_FLAG_RAW_BLOCK) != 0) {
|
||||
nFrameSize = 0;
|
||||
nOutDataEnd = (int)(nMaxOutBufferSize);
|
||||
nOutDataEnd = (int)(nMaxOutBufferSize - nCompressedSize);
|
||||
}
|
||||
|
||||
if (nOutDataEnd > BLOCK_SIZE)
|
||||
|
Loading…
Reference in New Issue
Block a user