mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Explicit parentheses around some logical operators (#1732)
* fix some warnings * format
This commit is contained in:
committed by
GitHub
parent
ebfe64b92d
commit
88f993da38
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user