Skip to content

Commit 82d8e3e

Browse files
authored
More consistent code
1 parent 0726f51 commit 82d8e3e

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, :($(NaNMath.pow)(a::$T, b::Integer) = ($assert_like($(NaNMath.pow), Number, a); $term($(^), a, b))))
83+
push!(exprs, :((f::$(typeof(f)))(a::$T, b::Integer) = ($assert_like(f, Number, a); $term($(^), a, b))))
8484
end
8585
end
8686

0 commit comments

Comments
 (0)