Skip to content

Commit d2e0fb2

Browse files
committed
sigh
1 parent bc504cb commit d2e0fb2

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-
n4 = (n, n, n, n)
330-
(n4..., n4..., n4...)
329+
n2 = (n, n)
330+
n4 = (n2..., n2...)
331+
(n4..., n4..., n2...)
331332
end
332333

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

0 commit comments

Comments
 (0)