mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-07 18:27:40 +08:00
Fixed a off-by-one bug in a debug assertion
This commit is contained in:
parent
791e5cfb69
commit
af4ef540bf
@ -55,7 +55,7 @@ struct TensorUInt128
|
||||
explicit TensorUInt128(const T& x) : high(0), low(x) {
|
||||
typedef typename conditional<sizeof(T) == 8, uint64_t, uint32_t>::type UnsignedT;
|
||||
typedef typename conditional<sizeof(LOW) == 8, uint64_t, uint32_t>::type UnsignedLow;
|
||||
eigen_assert(static_cast<UnsignedT>(x) < static_cast<UnsignedLow>(NumTraits<LOW>::highest()));
|
||||
eigen_assert(static_cast<UnsignedT>(x) <= static_cast<UnsignedLow>(NumTraits<LOW>::highest()));
|
||||
eigen_assert(x >= 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user