mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Fix compiler for unsigned integers.
This commit is contained in:
parent
6083014594
commit
23b958818e
@ -173,7 +173,8 @@ template<typename T> struct GenericNumTraits
|
|||||||
|
|
||||||
EIGEN_DEVICE_FUNC
|
EIGEN_DEVICE_FUNC
|
||||||
static inline T lowest() {
|
static inline T lowest() {
|
||||||
return IsInteger ? (numext::numeric_limits<T>::min)() : (-(numext::numeric_limits<T>::max)());
|
return IsInteger ? (numext::numeric_limits<T>::min)()
|
||||||
|
: static_cast<T>(-(numext::numeric_limits<T>::max)());
|
||||||
}
|
}
|
||||||
|
|
||||||
EIGEN_DEVICE_FUNC
|
EIGEN_DEVICE_FUNC
|
||||||
|
Loading…
x
Reference in New Issue
Block a user