-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix firstRange and lastRange implementation in DataProtocol #2993
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
Conversation
Hopefully I got it right this time |
cc @phausler: would you be the right person to review? |
@swift-ci test |
Oh, geez, this fell through the cracks while I am Away On Adventures. @YOCKOW is your cherry-pick on the main branch of this repository already? |
And if so: is @Frizlab's patch fixing a different issue than that? |
I'm happy to take this patch if it's needed. |
I believe #2499 is ready to be merged into
@Frizlab's patch (this PR) seems to be fixing the same issue. |
Personally I don’t care which PR is merged as long as the issue is fixed. |
@swift-ci test |
Closing as all tests introduced in this PR now pass with the merging of #2499. |
firstRange
did not find needle if at last index of haystack.lastRange
was fully broken and crashed.