Commit 2776788
authored
Avoid additional trailing closure offset crash (#786)
A MacroTesting bug report encountered an index crash:
pointfreeco/swift-macro-testing#6
Even when updating to `index(_:offsetBy:limitedBy:)`, the crash
remained, so I've resorted to more explicit limiting math. This seems to
fix the crash.1 parent c648dca commit 2776788
1 file changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
| |||
0 commit comments