mirror of
https://github.com/facebook/zstd.git
synced 2025-10-08 00:04:02 -04:00
minor strict aliasing warning
This commit is contained in:
parent
3b994cb465
commit
218bd31942
@ -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<<tableLog;
|
||||
statePtr->stateTable = u16ptr+2;
|
||||
statePtr->symbolTT = ((const U32*)ct + 1 + (tableLog ? (1<<(tableLog-1)) : 1));
|
||||
|
Loading…
x
Reference in New Issue
Block a user