diff --git a/glm/detail/func_integer.inl b/glm/detail/func_integer.inl index 7bf3eb94..d6f6c7ce 100644 --- a/glm/detail/func_integer.inl +++ b/glm/detail/func_integer.inl @@ -171,7 +171,8 @@ namespace glm GLM_STATIC_ASSERT(sizeof(uint) == sizeof(uint32), "uint and uint32 size mismatch"); uint64 Value64 = static_cast(x) * static_cast(y); - msb = *(reinterpret_cast(&Value64) + 1); + uint32* PointerMSB = (reinterpret_cast(&Value64) + 1); + msb = *PointerMSB; lsb = reinterpret_cast(Value64); } @@ -230,7 +231,8 @@ namespace glm GLM_STATIC_ASSERT(sizeof(int) == sizeof(int32), "int and int32 size mismatch"); int64 Value64 = static_cast(x) * static_cast(y); - msb = *(reinterpret_cast(&Value64) + 1); + int32* PointerMSB = (reinterpret_cast(&Value64) + 1); + msb = *PointerMSB; lsb = reinterpret_cast(Value64); } diff --git a/readme.txt b/readme.txt index d47557b2..a6a95017 100644 --- a/readme.txt +++ b/readme.txt @@ -46,6 +46,7 @@ GLM 0.9.5.3: 2014-0X-XX - Added GLM_GTX_matrix_transform_2d extension (#178, #176) - Fixed CUDA issues (#169, #168, #183, #182) - Added support for all extensions but GTX_string_cast to CUDA +- Fixed strict aliasing warnings in GCC 4.8.1 / Android NDK 9c (#152) ================================================================================ GLM 0.9.5.2: 2014-02-08