mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix some trivial warnings
This commit is contained in:
@@ -149,7 +149,7 @@ struct TensorIntDivisor {
|
||||
// type numerator should also be less than 2^32-1.
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T divide(const T numerator) const {
|
||||
eigen_assert(static_cast<typename UnsignedTraits<T>::type>(numerator) < NumTraits<UnsignedType>::highest()/2);
|
||||
eigen_assert(numerator >= 0);
|
||||
//eigen_assert(numerator >= 0); // this is implicitly asserted by the line above
|
||||
|
||||
UnsignedType t1 = muluh(multiplier, numerator);
|
||||
UnsignedType t = (static_cast<UnsignedType>(numerator) - t1) >> shift1;
|
||||
|
||||
Reference in New Issue
Block a user