From af4ef540bfeb381daaae86f91d492eed39f84e68 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Wed, 30 Mar 2016 18:37:19 -0700 Subject: Fixed a off-by-one bug in a debug assertion --- unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h index f68ac1794..3e56589c3 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); } -- cgit v1.2.3