From 71d683ed1985d1ba94fd6395b217248921c63e3f Mon Sep 17 00:00:00 2001 From: Matt Bauman Date: Tue, 2 Jan 2018 13:04:11 -0600 Subject: [PATCH] through bootstrap again --- base/bitset.jl | 8 ++++++-- base/char.jl | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/base/bitset.jl b/base/bitset.jl index 9304fc3051ab5..3628a82db9086 100644 --- a/base/bitset.jl +++ b/base/bitset.jl @@ -111,12 +111,16 @@ end @inline function _growend0!(b::Bits, nchunks::Int) len = length(b) _growend!(b, nchunks) - @inbounds b[len+1:end] = CHK0 # resize! gives dirty memory + @inbounds for i in len+1:length(b) + b[i] = CHK0 # resize! gives dirty memory + end end @inline function _growbeg0!(b::Bits, nchunks::Int) _growbeg!(b, nchunks) - @inbounds b[1:nchunks] = CHK0 + @inbounds for i in 1:nchunks + b[i] = CHK0 + end end function _matched_map!(f, s1::BitSet, s2::BitSet) diff --git a/base/char.jl b/base/char.jl index e551ec3b5796b..7c21d5a0987aa 100644 --- a/base/char.jl +++ b/base/char.jl @@ -97,7 +97,7 @@ widen(::Type{Char}) = Char print(io::IO, c::Char) = (write(io, c); nothing) -const hex_chars = [0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, +const hex_chars = [0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a]