Skip to content

Commit 0dc293b

Browse files
committed
nicer tuple definition, try if this fixes bootstrap
1 parent 1b734cb commit 0dc293b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

base/promotion.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,8 @@ function _promote_type_binary(::Type{T}, ::Type{S}, recursion_depth_limit::Tuple
326326
end
327327

328328
const _promote_type_binary_recursion_depth_limit = let n = nothing # recursion depth limit to prevent stack overflow
329-
(
330-
n, n, n, n, n, n, n, n,
331-
n, n, n, n, n, n, n, n,
332-
n, n, n, n, n, n, n, n,
333-
)
329+
f = (n, n, n, n)
330+
(f..., f...)
334331
end
335332

336333
function promote_type(::Type{T}, ::Type{S}) where {T,S}

0 commit comments

Comments
 (0)