Skip to content

Commit 98b485e

Browse files
authored
Make BitSet field const (#43553)
1 parent b9432a8 commit 98b485e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/bitset.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const NO_OFFSET = Int === Int64 ? -one(Int) << 60 : -one(Int) << 29
1111
# a small optimization in the in(x, ::BitSet) method
1212

1313
mutable struct BitSet <: AbstractSet{Int}
14-
bits::Vector{UInt64}
14+
const bits::Vector{UInt64}
1515
# 1st stored Int equals 64*offset
1616
offset::Int
1717

0 commit comments

Comments
 (0)