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

@@ -440,7 +440,7 @@ void View::eval_gpu(const std::vector<array>& inputs, array& out) {
// - type size is the same
// - type size is smaller and the last axis is contiguous
// - the entire array is row contiguous
if (ibytes == obytes || obytes < ibytes && in.strides().back() == 1 ||
if (ibytes == obytes || (obytes < ibytes && in.strides().back() == 1) ||
in.flags().row_contiguous) {
auto strides = in.strides();
for (int i = 0; i < static_cast<int>(strides.size()) - 1; ++i) {