From 483aaad10a925b5b22ea87bcabe01712db4fe870 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Wed, 30 Mar 2016 17:08:13 -0700 Subject: Fixed compilation warning --- unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h | 4 +++- 1 file changed, 3 insertions(+), 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 543a444fb..f68ac1794 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h @@ -53,7 +53,9 @@ struct TensorUInt128 template EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE explicit TensorUInt128(const T& x) : high(0), low(x) { - eigen_assert(x < NumTraits::highest()); + typedef typename conditional::type UnsignedT; + typedef typename conditional::type UnsignedLow; + eigen_assert(static_cast(x) < static_cast(NumTraits::highest())); eigen_assert(x >= 0); } -- cgit v1.2.3