Skip to content

Commit 78bdda3

Browse files
authored
find: Avoid redefining functions on 1.6. (#449)
1 parent 0924175 commit 78bdda3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/host/indexing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function findminmax(binop, xs::AnyGPUArray; init, dims)
151151

152152
@static if VERSION < v"1.7.0-DEV.119"
153153
# before JuliaLang/julia#35316, isless/isgreated did not order NaNs last
154-
function reduction(t1, t2)
154+
function reduction(t1::Tuple{<:AbstractFloat,<:Any}, t2::Tuple{<:AbstractFloat,<:Any})
155155
(x, i), (y, j) = t1, t2
156156

157157
isnan(x) && return t1

0 commit comments

Comments
 (0)