]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
minor strict aliasing warning
authorYann Collet <yann.collet.73@gmail.com>
Wed, 6 Jan 2016 01:19:55 +0000 (02:19 +0100)
committerYann Collet <yann.collet.73@gmail.com>
Wed, 6 Jan 2016 01:19:55 +0000 (02:19 +0100)
lib/fse_static.h

index c5c6f20c604365e928456b8c3026f2c8f1fd35af..a881e351fc86aa597fb868c835edb25be01cf08e 100644 (file)
@@ -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));