Commit ba9e58e7 authored by hybrid's avatar hybrid

Fix strict-aliasing problem.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2853 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 624abae3
...@@ -109,7 +109,7 @@ bool CArchiveLoaderZIP::isALoadableFileFormat(io::IReadFile* file) const ...@@ -109,7 +109,7 @@ bool CArchiveLoaderZIP::isALoadableFileFormat(io::IReadFile* file) const
#endif #endif
return header.Sig == 0x04034b50 || // ZIP return header.Sig == 0x04034b50 || // ZIP
*((u16*)(&header.Sig)) == 0x8b1f; // gzip (header.Sig&0xffff) == 0x8b1f; // gzip
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment