From 218bd319425bfebffd9fb262b12f2f811973d889 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Wed, 6 Jan 2016 02:19:55 +0100 Subject: [PATCH] minor strict aliasing warning --- lib/fse_static.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));