Explicit parentheses around some logical operators (#1732)

* fix some warnings

* format
This commit is contained in:
Valentin Roussellet
2024-12-24 07:02:20 -08:00
committed by GitHub
parent ebfe64b92d
commit 88f993da38
5 changed files with 6 additions and 6 deletions

View File

@@ -28,8 +28,8 @@ BinaryOpType get_binary_op_type(const array& a, const array& b) {
} else if (b.data_size() == 1 && a.flags().contiguous) {
bopt = BinaryOpType::VectorScalar;
} else if (
a.flags().row_contiguous && b.flags().row_contiguous ||
a.flags().col_contiguous && b.flags().col_contiguous) {
(a.flags().row_contiguous && b.flags().row_contiguous) ||
(a.flags().col_contiguous && b.flags().col_contiguous)) {
bopt = BinaryOpType::VectorVector;
} else {
bopt = BinaryOpType::General;