From 9d66a6403c3e1f80897fbe1d295c3d54bf466d0a75cef811236d7ba0a26fbdcf Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sun, 28 Sep 2014 17:55:28 +0000 Subject: [PATCH] Accepting request 252446 from devel:libraries:c_c++ 1 OBS-URL: https://build.opensuse.org/request/show/252446 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glm?expand=0&rev=6 --- aliasing.patch | 527 +++++++++++++++++++++++++++++++++++++++++++++++++ glm.changes | 5 + glm.spec | 3 + 3 files changed, 535 insertions(+) create mode 100644 aliasing.patch diff --git a/aliasing.patch b/aliasing.patch new file mode 100644 index 0000000..9511d81 --- /dev/null +++ b/aliasing.patch @@ -0,0 +1,527 @@ +Index: glm/glm/detail/func_common.inl +=================================================================== +--- glm.orig/glm/detail/func_common.inl ++++ glm/glm/detail/func_common.inl +@@ -850,7 +850,9 @@ namespace detail + + GLM_FUNC_QUALIFIER int floatBitsToInt(float const & v) + { +- return reinterpret_cast(const_cast(v)); ++ int Bits; ++ std::memcpy(&Bits, &v, sizeof(Bits)); ++ return Bits; + } + + template