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

@@ -157,7 +157,7 @@ array arange(
// Check if start and stop specify a valid range because if not, we have to
// return an empty array
if (std::isinf(step) &&
(step > 0 && start < stop || step < 0 && start > stop)) {
((step > 0 && start < stop) || (step < 0 && start > stop))) {
return array({start}, dtype);
}