Skip to content
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

fix #45825, BitArray methods assuming 1-indexing of AbstractArray #45835

Merged
merged 1 commit into from
Jul 18, 2022

Conversation

JeffBezanson
Copy link
Sponsor Member

fix #45825

@JeffBezanson JeffBezanson added arrays [a, r, r, a, y, s] bugfix This change fixes an existing bug labels Jun 27, 2022
@vchuravy vchuravy added backport 1.6 Change should be backported to release-1.6 backport 1.7 backport 1.8 Change should be backported to release-1.8 labels Jun 27, 2022
base/bitarray.jl Outdated Show resolved Hide resolved
@martinholters
Copy link
Member

Might be too breaking before 2.0, but shouldn't BitArray(::OffsetArray) throw just like Array{Bool}(::OffsetArray) does (unless the start index happens to be 1)?

@JeffBezanson
Copy link
Sponsor Member Author

Oh I see, I was just wrong about what behavior is intended then. I was thinking of the argument as an iterator.

@JeffBezanson
Copy link
Sponsor Member Author

Ok this should be right now. Using nextind seems to give full performance.

base/bitarray.jl Outdated Show resolved Hide resolved
@JeffBezanson JeffBezanson merged commit 820c08b into master Jul 18, 2022
@JeffBezanson JeffBezanson deleted the jb/fix45825 branch July 18, 2022 19:02
KristofferC pushed a commit that referenced this pull request Jul 20, 2022
@KristofferC KristofferC removed the backport 1.8 Change should be backported to release-1.8 label Aug 7, 2022
ffucci pushed a commit to ffucci/julia that referenced this pull request Aug 11, 2022
pcjentsch pushed a commit to pcjentsch/julia that referenced this pull request Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrays [a, r, r, a, y, s] backport 1.6 Change should be backported to release-1.6 bugfix This change fixes an existing bug
Projects
None yet
5 participants