-
Notifications
You must be signed in to change notification settings - Fork 41
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
Correct bounds checking for AbstractVectors with no indices specified (fixes #194) #195
Conversation
Codecov Report
@@ Coverage Diff @@
## master #195 +/- ##
==========================================
- Coverage 99.28% 98.93% -0.35%
==========================================
Files 5 5
Lines 280 283 +3
==========================================
+ Hits 278 280 +2
- Misses 2 3 +1
Continue to review full report at Codecov.
|
Thank you for the quick fix! Is it odd that coverage is reporting that the added |
It's perhaps some inlining quirk. I've added an explicit test, hopefully coverage will be happy now. |
6a44648
to
3102919
Compare
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.
Nice detective work. No objection in merging this.
94e701b
to
873cc30
Compare
The problem here isn't the bounds check. Indeed, the expression julia> Base._to_linear_index(OffsetArray([6], 2:2))
1 This is where the problem is: |
After this PR