Repository navigation
Simplify non-trivial pointer subtraction - #7341
Merged
tautschnig merged 1 commit intoNov 16, 2022
Merged
Conversation
Collaborator
Author
|
Requires #7338 for tests to pass. |
tautschnig
marked this pull request as draft
November 14, 2022 09:35
3 tasks done
tautschnig
force-pushed
the
feature/simp-pointer-subtract
branch
from
November 15, 2022 15:00
043a950 to
106e8ac
Compare
tautschnig
force-pushed
the
feature/simp-pointer-subtract
branch
from
November 15, 2022 15:02
106e8ac to
6fcf927
Compare
We can also simplify the case where both pointers refer to the same object, as long as the pointers are at most one element beyond bounds.
tautschnig
force-pushed
the
feature/simp-pointer-subtract
branch
from
November 15, 2022 15:03
6fcf927 to
633875b
Compare
Codecov ReportBase: 78.29% // Head: 78.31% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #7341 +/- ##
===========================================
+ Coverage 78.29% 78.31% +0.02%
===========================================
Files 1642 1644 +2
Lines 190023 190226 +203
===========================================
+ Hits 148769 148980 +211
+ Misses 41254 41246 -8
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
tautschnig
marked this pull request as ready for review
November 15, 2022 22:39
peterschrammel
approved these changes
Nov 16, 2022
peterschrammel
left a comment
Member
There was a problem hiding this comment.
Have we got a test for this case?
Collaborator
Author
We actually do, because tests failed here when #7338 wasn't yet merged. Also, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We can also simplify the case where both pointers refer to the same object, as long as the pointers are at most one element beyond bounds.