diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-02-28 02:32:46 -0800 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-02-28 02:32:46 -0800 |
commit | bb483313f6a9c69e15ad5e668368eb5f80adf8f7 (patch) | |
tree | e0e4f71ad3374cc903f172b2b2b3a33f29fa4c61 /unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h | |
parent | fb53384b0f8e3d2ef6e7ec9a4e51c27142ef880c (diff) |
Fixed another batch of compilation warnings
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h b/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h index 11c7ce443..b85f45d90 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h @@ -73,7 +73,7 @@ struct TensorIntDivisor { EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T divide(const T numerator) const { const int N = 32; eigen_assert(numerator >= 0); - eigen_assert(numerator <= (1ull<<N) - 1); + eigen_assert(numerator <= static_cast<T>(1ull<<N) - 1); uint32_t t1 = (multiplier * numerator) >> 32; uint32_t t = (static_cast<uint32_t>(numerator) - t1) >> shift1; |