Skip to content

Commit 13a36a3

Browse files
committed
xrCore: Fix definitions of type_min and type_zero
1 parent e8cb6c4 commit 13a36a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xrCore/xr_types.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ template <typename T>
2929
constexpr auto type_max = std::numeric_limits<T>::max();
3030

3131
template <typename T>
32-
constexpr auto type_min = -std::numeric_limits<T>::max();
32+
constexpr auto type_min = std::numeric_limits<T>::min();
3333

3434
template <typename T>
35-
constexpr auto type_zero = std::numeric_limits<T>::min();
35+
constexpr auto type_zero = T(0);
3636

3737
template <typename T>
3838
constexpr auto type_epsilon = std::numeric_limits<T>::epsilon();

0 commit comments

Comments
 (0)