fixed minor conversion warning in datagen

This commit is contained in:
Yann Collet
2019-08-02 18:02:54 +02:00
parent 37f47e51a8
commit 387e20d4f0
2 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ static void RDG_fillLiteralDistrib(BYTE* ldt, fixedPoint_24_8 ld)
BYTE character = (ld<=0.0) ? 0 : '0';
U32 u;
if (ld<=0.0) ld = 0.0;
if (ld<=0) ld = 0;
for (u=0; u<LTSIZE; ) {
U32 const weight = (((LTSIZE - u) * ld) >> 8) + 1;
U32 const end = MIN ( u + weight , LTSIZE);