diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h index f68ac17942..3e56589c35 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h @@ -55,7 +55,7 @@ struct TensorUInt128 explicit TensorUInt128(const T& x) : high(0), low(x) { typedef typename conditional::type UnsignedT; typedef typename conditional::type UnsignedLow; - eigen_assert(static_cast(x) < static_cast(NumTraits::highest())); + eigen_assert(static_cast(x) <= static_cast(NumTraits::highest())); eigen_assert(x >= 0); }