Fix displayLevel overflow
This commit is contained in:
parent
bd9c8ca146
commit
20f715d709
@ -969,7 +969,7 @@ ZDICTLIB_API size_t ZDICT_optimizeTrainFromBuffer_cover(
|
|||||||
/* Initialization */
|
/* Initialization */
|
||||||
COVER_best_init(&best);
|
COVER_best_init(&best);
|
||||||
/* Turn down global display level to clean up display at level 2 and below */
|
/* Turn down global display level to clean up display at level 2 and below */
|
||||||
g_displayLevel = parameters->zParams.notificationLevel - 1;
|
g_displayLevel = displayLevel == 0 ? 0 : displayLevel - 1;
|
||||||
/* Loop through d first because each new value needs a new context */
|
/* Loop through d first because each new value needs a new context */
|
||||||
LOCALDISPLAYLEVEL(displayLevel, 2, "Trying %u different sets of parameters\n",
|
LOCALDISPLAYLEVEL(displayLevel, 2, "Trying %u different sets of parameters\n",
|
||||||
kIterations);
|
kIterations);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user