diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h index d23f2e4c8..afbcba4a2 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h @@ -78,14 +78,14 @@ template EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE bool operator == (const TensorUInt128& lhs, const TensorUInt128& rhs) { - return (lhs.high == rhs.high) & (lhs.low == rhs.low); + return (lhs.high == rhs.high) && (lhs.low == rhs.low); } template EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE bool operator != (const TensorUInt128& lhs, const TensorUInt128& rhs) { - return (lhs.high != rhs.high) | (lhs.low != rhs.low); + return (lhs.high != rhs.high) || (lhs.low != rhs.low); } template