diff --git a/glm/detail/func_common.inl b/glm/detail/func_common.inl index 23f44193..7bf0f737 100644 --- a/glm/detail/func_common.inl +++ b/glm/detail/func_common.inl @@ -195,7 +195,7 @@ namespace detail GLM_FUNC_QUALIFIER static vec call(vec const& x) { T const Shift(static_cast(sizeof(T) * 8 - 1)); - vec const y(vec::type, P>(-x) >> typename make_unsigned::type(Shift)); + vec const y(vec::type, Q>(-x) >> typename make_unsigned::type(Shift)); return (x >> Shift) | y; }