From 5912ad877c6fe0072c56e8d2f70b315a1f4da6ce Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 14 Apr 2016 11:40:14 -0700 Subject: Silenced a compilation warning --- unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (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 3e56589c3..5950f38e2 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h @@ -53,9 +53,7 @@ struct TensorUInt128 template EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE 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::type>(x) <= static_cast::type>(NumTraits::highest()))); eigen_assert(x >= 0); } -- cgit v1.2.3