From a3a8f84f6b3437ffbe21491ed23718aadf778979 Mon Sep 17 00:00:00 2001 From: Nouri Khalass Date: Sat, 21 Jan 2017 19:47:41 +0100 Subject: [PATCH 1/2] Fix issue #600 and #605 This issue was caused by an incorrect number of template arguments. --- glm/detail/func_common.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glm/detail/func_common.inl b/glm/detail/func_common.inl index cafaed59..f73bc7e1 100644 --- a/glm/detail/func_common.inl +++ b/glm/detail/func_common.inl @@ -190,12 +190,12 @@ namespace detail # if GLM_ARCH == GLM_ARCH_X86 template class vecType, bool Aligned> - struct compute_sign + struct compute_sign { GLM_FUNC_QUALIFIER static vecType call(vecType const & x) { T const Shift(static_cast(sizeof(T) * 8 - 1)); - vecType const y(vecType::type, P>(-x) >> typename make_unsigned::type(Shift)); + vecType const y(L, vecType::type, P>(-x) >> typename make_unsigned::type(Shift)); return (x >> Shift) | y; } From 21b90964289a9bfa8fe71ad6252cca6346e8608e Mon Sep 17 00:00:00 2001 From: Nouri Khalass Date: Sat, 21 Jan 2017 20:46:11 +0100 Subject: [PATCH 2/2] Fixed typo --- glm/detail/func_common.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/detail/func_common.inl b/glm/detail/func_common.inl index f73bc7e1..2dd94e1f 100644 --- a/glm/detail/func_common.inl +++ b/glm/detail/func_common.inl @@ -195,7 +195,7 @@ namespace detail GLM_FUNC_QUALIFIER static vecType call(vecType const & x) { T const Shift(static_cast(sizeof(T) * 8 - 1)); - vecType const y(L, vecType::type, P>(-x) >> typename make_unsigned::type(Shift)); + vecType const y(vecType::type, P>(-x) >> typename make_unsigned::type(Shift)); return (x >> Shift) | y; }