Bugfix : Fix a compiler bug for iOS arm, thanks to Brian Miller.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1247 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/5/merge
kimmi 2012-05-20 20:41:06 +00:00
parent 6d2857ed4a
commit 1ac5a47c5d
2 changed files with 8 additions and 0 deletions

View File

@ -133,3 +133,6 @@ Several LWO and LWS fixes (pivoting).
- Marcel Metz - Marcel Metz
GCC/Linux fixes for the SimpleOpenGL sample. GCC/Linux fixes for the SimpleOpenGL sample.
- Brian Miller
Bugfix for a compiler fix for iOS on arm.

View File

@ -295,7 +295,12 @@ private:
throw DeadlyImportError("End of file or stream limit was reached"); throw DeadlyImportError("End of file or stream limit was reached");
} }
#ifdef __arm__
T f;
memcpy (&f, current, sizeof(T));
#else
T f = *((const T*)current); T f = *((const T*)current);
#endif
Intern :: Getter<SwapEndianess,T,RuntimeSwitch>() (&f,le); Intern :: Getter<SwapEndianess,T,RuntimeSwitch>() (&f,le);
current += sizeof(T); current += sizeof(T);