Skip to content

Commit

Permalink
fix bootstrap failure
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Jul 10, 2023
1 parent a3405c1 commit 9cc8b3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/iterators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ using .Base:
SizeUnknown, HasLength, HasShape, IsInfinite, EltypeUnknown, HasEltype, OneTo,
@propagate_inbounds, @isdefined, @boundscheck, @inbounds, Generator,
AbstractRange, AbstractUnitRange, UnitRange, LinearIndices, TupleOrBottom,
(:), |, +, -, *, !==, !, ==, !=, <=, <, >, >=, missing, something, copyto!,
(:), |, +, -, *, !==, !, ==, !=, <=, <, >, >=, missing, copyto!,
any, _counttuple, eachindex, ntuple, zero, prod, reduce, in, firstindex, lastindex,
tail, fieldtypes, min, max, minimum, zero, oneunit, promote, promote_shape
using Core: @doc
Expand Down Expand Up @@ -514,7 +514,7 @@ function unzip(itrs)
vals, state = outer
vecs = ntuple(length(vals)) do i
x = vals[i]
v = Vector{typeof(x)}(undef, something(n, 1))
v = Vector{typeof(x)}(undef, Base.something(n, 1))
@inbounds v[1] = x
return v
end
Expand All @@ -541,7 +541,7 @@ function unzip_rest(vecs, eltypes, i, itrs, state)
T = Base.promote_typejoin(eltype(v), typeof(x))
v′ = Vector{T}(undef, length(v) + !(i isa Int))
copyto!(v′, v)
@inbounds v′[something(i, end)] = x
@inbounds v′[Base.something(i, end)] = x
return v′
end
eltypes′ = Tuple{map(eltype, vecs′)...}
Expand Down

0 comments on commit 9cc8b3d

Please sign in to comment.