diff options
Diffstat (limited to 'lib/common/fse_decompress.c')
| -rw-r--r-- | lib/common/fse_decompress.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/common/fse_decompress.c b/lib/common/fse_decompress.c index 8e3f0035f69a..4c66c3b77464 100644 --- a/lib/common/fse_decompress.c +++ b/lib/common/fse_decompress.c @@ -139,8 +139,8 @@ size_t FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned      {   U32 u;          for (u=0; u<tableSize; u++) {              FSE_FUNCTION_TYPE const symbol = (FSE_FUNCTION_TYPE)(tableDecode[u].symbol); -            U16 nextState = symbolNext[symbol]++; -            tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32 ((U32)nextState) ); +            U32 const nextState = symbolNext[symbol]++; +            tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) );              tableDecode[u].newState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize);      }   } | 
