Skip to content

Commit e4dcb1f

Browse files
committed
Inference fix
1 parent 0486330 commit e4dcb1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/reducedim.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ function reducedim_init(f::ExtremaMap, op::typeof(_extrema_rf), A::AbstractArray
188188
v0 = oftype(v0[1], Inf), oftype(v0[2], -Inf)
189189
elseif isunordered(v0[1])
190190
# v0 is missing or a third-party unordered value
191-
T1, T2 = Tr.parameters
191+
T1, T2 = Tr.parameters[1], Tr.parameters[2]
192192
# TODO: Some types, like BigInt, don't support typemin/typemax.
193193
# So a Matrix{Union{BigInt, Missing}} can still error here.
194194
v0 = typemax(nonmissingtype(T1)), typemin(nonmissingtype(T2))

0 commit comments

Comments
 (0)