Skip to content

[Distributed] Fix warning about comparisons like 'X<=Y<=Z' #79146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Feb 5, 2025

Avoids the following warning:


/Users/ktoso/code/swift-project/swift/lib/Sema/CodeSynthesisDistributedActor.cpp:860:43: warning: comparisons like 'X<=Y<=Z' don't have their mathematical meaning [-Wparentheses]
  860 |             assert(idIdx < actorSystemIdx < unownedExecutorIdx &&

Avoids the following warning:

```

/Users/ktoso/code/swift-project/swift/lib/Sema/CodeSynthesisDistributedActor.cpp:860:43: warning: comparisons like 'X<=Y<=Z' don't have their mathematical meaning [-Wparentheses]
  860 |             assert(idIdx < actorSystemIdx < unownedExecutorIdx &&
```
@ktoso ktoso requested a review from hborla as a code owner February 5, 2025 02:25
@ktoso
Copy link
Contributor Author

ktoso commented Feb 5, 2025

@swift-ci please smoke test

@ktoso ktoso enabled auto-merge February 5, 2025 02:26
@ktoso ktoso added the distributed Feature → concurrency: distributed actor label Feb 5, 2025
@ktoso
Copy link
Contributor Author

ktoso commented Mar 6, 2025

@swift-ci please smoke test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distributed Feature → concurrency: distributed actor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant