-
Notifications
You must be signed in to change notification settings - Fork 273
Simplify non-trivial pointer subtraction #7341
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
Simplify non-trivial pointer subtraction #7341
Conversation
Requires #7338 for tests to pass. |
043a950
to
106e8ac
Compare
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.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have we got a test for this case?
We actually do, because tests failed here when #7338 wasn't yet merged. Also, |
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.