diff --git a/src/Magnum/Math/Functions.h b/src/Magnum/Math/Functions.h index e421001d6..ddfda2209 100644 --- a/src/Magnum/Math/Functions.h +++ b/src/Magnum/Math/Functions.h @@ -389,7 +389,7 @@ template inline Vector clamp(const Vector 0, `0` if @p x = 0 and `-1` if @p x < 0. */ -template inline typename std::enable_if::value, T>::type sign(const T& scalar) { +template inline typename std::enable_if::value, T>::type sign(T scalar) { if(scalar > T(0)) return T(1); if(scalar < T(0)) return T(-1); return T(0);