summaryrefslogtreecommitdiffhomepage
path: root/compat/limits.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-17 20:26:51 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-17 20:27:05 +0100
commitd5ca487e71290aee7ed675f3002265b6f1032347 (patch)
tree688d2277bda5f5dd21abdbb23eac7f072c49f741 /compat/limits.hpp
parent2e5aac0627c438d2aa709430c56e1cb1f0eec78f (diff)
d
Diffstat (limited to 'compat/limits.hpp')
-rw-r--r--compat/limits.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/limits.hpp b/compat/limits.hpp
index 0de74afa..93c66951 100644
--- a/compat/limits.hpp
+++ b/compat/limits.hpp
@@ -35,7 +35,7 @@ template<> struct limits<double>
using integer_type = int64_t;
};
-template<typename T> requires std::is_arithmetic_v<T> using int_max = typename limits<T>::max;;
-template<typename T> requires std::is_arithmetic_v<T> using int_min = typename limits<T>::min;;
+template<typename T> requires std::is_integral_v<T> using int_max = typename limits<T>::max;
+template<typename T> requires std::is_integral_v<T> using int_min = typename limits<T>::min;
} // namespace floormat