diff --git a/Eigen/src/Core/Assign.h b/Eigen/src/Core/Assign.h index bcfc261e5..f48173172 100644 --- a/Eigen/src/Core/Assign.h +++ b/Eigen/src/Core/Assign.h @@ -449,7 +449,7 @@ struct assign_impl::JointAlignment }; const Scalar *dst_ptr = &dst.coeffRef(0,0); - if((!bool(dstIsAligned)) && (Index(dst_ptr) % sizeof(Scalar))>0) + if((!bool(dstIsAligned)) && (size_t(dst_ptr) % sizeof(Scalar))>0) { // the pointer is not aligend-on scalar, so alignment is not possible return assign_impl::run(dst, src);