From: Yann Collet Date: Fri, 11 May 2018 01:17:21 +0000 (-0700) Subject: fixed c++ conversion warning X-Git-Tag: v1.3.5~3^2~55^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d7626672d19744330c4a2e8fcb022b47a40b618;p=thirdparty%2Fzstd.git fixed c++ conversion warning --- diff --git a/lib/common/fse.h b/lib/common/fse.h index 864212743..5a2344441 100644 --- a/lib/common/fse.h +++ b/lib/common/fse.h @@ -575,8 +575,9 @@ MEM_STATIC void FSE_flushCState(BIT_CStream_t* bitC, const FSE_CState_t* statePt BIT_flushBits(bitC); } -MEM_STATIC U32 FSE_getMaxNbBits(const FSE_symbolCompressionTransform* symbolTT, U32 symbolValue) +MEM_STATIC U32 FSE_getMaxNbBits(const void* symbolTTPtr, U32 symbolValue) { + const FSE_symbolCompressionTransform* symbolTT = (const FSE_symbolCompressionTransform*) symbolTTPtr; return (symbolTT[symbolValue].deltaNbBits + ((1<<16)-1)) >> 16; }