From ce3650f0f2ed89ee25837ae97188fc6cb745f69d Mon Sep 17 00:00:00 2001 From: Gottfried Leibniz <37632412+gottfriedleibniz@users.noreply.github.com> Date: Fri, 25 Sep 2020 10:58:35 -0300 Subject: [PATCH] fix: isMultiple Function declaration has it returning ``vec``, however, the function uses the equality operator (which only returns a bool). Usage of the function will generate "no viable conversion ..." compilation errors. --- glm/ext/vector_integer.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glm/ext/vector_integer.inl b/glm/ext/vector_integer.inl index 939ff5e2..cefb132e 100644 --- a/glm/ext/vector_integer.inl +++ b/glm/ext/vector_integer.inl @@ -32,7 +32,7 @@ namespace glm { GLM_STATIC_ASSERT(std::numeric_limits::is_integer, "'isMultiple' only accept integer inputs"); - return (Value % Multiple) == vec(0); + return equal(Value % Multiple, vec(0)); } template @@ -40,7 +40,7 @@ namespace glm { GLM_STATIC_ASSERT(std::numeric_limits::is_integer, "'isMultiple' only accept integer inputs"); - return (Value % Multiple) == vec(0); + return equal(Value % Multiple, vec(0)); } template