Skip to content

Commit 3f6a0d8

Browse files
fix: fix NaNMath.pow ambiguity resolution in @number_methods
1 parent 79da1be commit 3f6a0d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/methods.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function number_methods(T, rhs1, rhs2, options=nothing)
8080

8181
# Fix method ambiguity error on NaNMath >= 1.0.2 and promotion of `Integer`s on NaNMath < 1.0.2
8282
if f === NaNMath.pow
83-
push!(exprs, :((f::$(typeof(f)))(a::$T, b::Integer) = ($assert_like(f, Number, a); $term($(^), a, b))))
83+
push!(exprs, :((f::$(typeof(f)))(a::$T, b::Integer) = a ^ b))
8484
end
8585
end
8686

0 commit comments

Comments
 (0)