Skip to content

Commit

Permalink
Handle legacy frames correctly for self-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuel-marty authored Jun 8, 2019
1 parent 136c168 commit 658597e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lz4ultra.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ static int do_self_test(const unsigned int nOptions, int nBlockMaxCode) {
float fMatchProbability;

fprintf(stdout, "size %zd", nGeneratedDataSize);
for (fMatchProbability = (nOptions & OPT_RAW) ? 0.1f : 0; fMatchProbability <= 0.995f; fMatchProbability += fProbabilitySizeStep) {
for (fMatchProbability = (nOptions & (OPT_RAW|OPT_LEGACY_FRAMES)) ? 0.1f : 0; fMatchProbability <= 0.995f; fMatchProbability += fProbabilitySizeStep) {
int nNumLiteralValues[12] = { 1, 2, 3, 15, 30, 56, 96, 137, 178, 191, 255, 256 };
float fXorProbability;

Expand Down

0 comments on commit 658597e

Please sign in to comment.