From: Yann Collet Date: Wed, 6 Jan 2016 01:19:55 +0000 (+0100) Subject: minor strict aliasing warning X-Git-Tag: v0.4.6~2^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=218bd319425bfebffd9fb262b12f2f811973d889;p=thirdparty%2Fzstd.git minor strict aliasing warning --- diff --git a/lib/fse_static.h b/lib/fse_static.h index c5c6f20c6..a881e351f 100644 --- a/lib/fse_static.h +++ b/lib/fse_static.h @@ -233,7 +233,7 @@ MEM_STATIC void FSE_initCState(FSE_CState_t* statePtr, const FSE_CTable* ct) { const void* ptr = ct; const U16* u16ptr = (const U16*) ptr; - const U32 tableLog = *u16ptr; + const U32 tableLog = MEM_read16(ptr); statePtr->value = (ptrdiff_t)1<stateTable = u16ptr+2; statePtr->symbolTT = ((const U32*)ct + 1 + (tableLog ? (1<<(tableLog-1)) : 1));