-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
1.9.2 Base.map!(|,a,a,b) yields wrong answer on BitVector #50780
Comments
that looks correct to me, what output were you expecting? note that |
You are right, sorry. I will close this issue. But I am now confused how union of two IntSets is supposed to work since it seems to rely on |
well that doesn't work in 1.8.5 at least...
|
Wait! There is a new bug in Base.map! I am reopening this issue. Here is the bug. It is with julia> a = BitVector([1,1,0,0,1,1,0,0]);
julia> b = BitVector([1,0,1,0,1,0,1,0]);
julia> map!(|,a,a,b);
julia> a
8-element BitVector:
1
0
1
0
1
0
1
0 |
Specifically the problem is new in 1.9 and affects the last chunk of the array and is caused by #47013. |
For another related bug:
|
luckily it's easy to fix. Thanks for the report! |
The testset for the DataStructures.jl package are now failing in 1.9.2. In particular, IntSet is not working. I have traced the error to a bug with the Base.map! function applied to BitVector. See below for the incorrect output from map!:
EDIT: I did not report this bug correctly in my first post. The bug is actually with
map!(|,a,a,b)
not withmap!(|,a,b)
. Please refer to my follow-up post below.The text was updated successfully, but these errors were encountered: