Skip to content

Commit

Permalink
Make BitSet field const (JuliaLang#43553)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobnissen authored Jan 5, 2022
1 parent b9432a8 commit 98b485e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/bitset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const NO_OFFSET = Int === Int64 ? -one(Int) << 60 : -one(Int) << 29
# a small optimization in the in(x, ::BitSet) method

mutable struct BitSet <: AbstractSet{Int}
bits::Vector{UInt64}
const bits::Vector{UInt64}
# 1st stored Int equals 64*offset
offset::Int

Expand Down

0 comments on commit 98b485e

Please sign in to comment.