From e96899cebae72af8d633bd503bdff059ae4d9ace Mon Sep 17 00:00:00 2001 From: rexy712 Date: Wed, 8 Jun 2022 16:06:24 -0700 Subject: [PATCH] Fixed abs just not doing anything --- include/rexy/utility.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rexy/utility.hpp b/include/rexy/utility.hpp index a1d063c..6299632 100644 --- a/include/rexy/utility.hpp +++ b/include/rexy/utility.hpp @@ -108,7 +108,7 @@ namespace rexy{ } template constexpr T abs(const T& val){ - return val > 0 ? val : val; + return val > 0 ? val : -val; } }