Skip to content

1.9.2 Base.map!(|,a,a,b) yields wrong answer on BitVector #50780

Closed
@StephenVavasis

Description

@StephenVavasis

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 with map!(|,a,b). Please refer to my follow-up post below.

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, b);

julia> a
8-element BitVector:
 1
 0
 1
 0
 1
 0
 1
 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions