diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2018-08-24 22:58:55 +0200 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2018-08-24 22:58:55 +0200 |
commit | f7675b826b2f0a33b09b97342e855a8ef059927e (patch) | |
tree | 302d806534a3c6ff5885e6fb135b9c0686484e3f /unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h | |
parent | 949b0ad9cb4b5c539e154eb99e61b4d473cf705c (diff) |
Fix several integer conversion and sign-compare warnings
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h b/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h index 98ad661ca..3f7d26b18 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h @@ -84,7 +84,7 @@ template<DenseIndex n> struct NumTraits<type2index<n> > namespace internal { template <typename T> EIGEN_DEVICE_FUNC void update_value(T& val, DenseIndex new_val) { - val = new_val; + val = internal::convert_index<T>(new_val); } template <DenseIndex n> EIGEN_DEVICE_FUNC void update_value(type2index<n>& val, DenseIndex new_val) { |