Skip to content

Commit 2e5336e

Browse files
committed
further decrease limit
1 parent be5f551 commit 2e5336e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

base/promotion.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,9 @@ 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-
f = (n, n, n, n)
330-
(f..., f..., f..., f...)
329+
n2 = (n, n)
330+
n4 = (n2..., n2...)
331+
(n4..., n4..., n4..., n2...)
331332
end
332333

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

0 commit comments

Comments
 (0)