diff --git a/source/detail/numeric_utils.hpp b/source/detail/numeric_utils.hpp index 21c48397..6fba408b 100644 --- a/source/detail/numeric_utils.hpp +++ b/source/detail/numeric_utils.hpp @@ -50,11 +50,7 @@ std::string serialize_number_to_string(Number num) template constexpr Number abs(Number val) { - if (val < Number{0}) - { - return -val; - } - return val; + return (val < Number{0}) ? -val : val; }; ///