Skip to content

Commit 3ee34c5

Browse files
committed
fix fallback
1 parent 8b3d73a commit 3ee34c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NaNMath.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ for f in (:sin, :cos, :tan, :asin, :acos, :acosh, :atanh,
77
:log, :log2, :log10, :log1p, :lgamma)
88
@eval begin
99
function ($f)(x::Real)
10-
fx = float(x)
10+
xf = float(x)
1111
x === xf && throw(MethodError($f, (x,)))
12-
($f)(fx)
12+
($f)(xf)
1313
end
1414
end
1515
end

0 commit comments

Comments
 (0)