diff --git a/CREDITS b/CREDITS index 4bac34b69..a46aa2332 100644 --- a/CREDITS +++ b/CREDITS @@ -133,3 +133,6 @@ Several LWO and LWS fixes (pivoting). - Marcel Metz GCC/Linux fixes for the SimpleOpenGL sample. + +- Brian Miller +Bugfix for a compiler fix for iOS on arm. \ No newline at end of file diff --git a/code/StreamReader.h b/code/StreamReader.h index 2388434a6..8d40922e0 100644 --- a/code/StreamReader.h +++ b/code/StreamReader.h @@ -295,7 +295,12 @@ private: 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); +#endif Intern :: Getter() (&f,le); current += sizeof(T);