We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
type_min
type_zero
1 parent e8cb6c4 commit 13a36a3Copy full SHA for 13a36a3
src/xrCore/xr_types.h
@@ -29,10 +29,10 @@ template <typename T>
29
constexpr auto type_max = std::numeric_limits<T>::max();
30
31
template <typename T>
32
-constexpr auto type_min = -std::numeric_limits<T>::max();
+constexpr auto type_min = std::numeric_limits<T>::min();
33
34
35
-constexpr auto type_zero = std::numeric_limits<T>::min();
+constexpr auto type_zero = T(0);
36
37
38
constexpr auto type_epsilon = std::numeric_limits<T>::epsilon();
0 commit comments