Skip to content

Commit 1b734cb

Browse files
committed
fix boostrap
1 parent 54d1a14 commit 1b734cb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

base/promotion.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,13 @@ function _promote_type_binary(::Type{T}, ::Type{S}, recursion_depth_limit::Tuple
325325
promote_result(T, S, promote_rule(T,S), promote_rule(S,T), l)
326326
end
327327

328-
const _promote_type_binary_recursion_depth_limit = ((nothing for _ in 1:28)...,) # recursion depth limit to prevent stack overflow
328+
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+
)
334+
end
329335

330336
function promote_type(::Type{T}, ::Type{S}) where {T,S}
331337
@inline

0 commit comments

Comments
 (0)