Skip to content

Commit bb67c53

Browse files
committed
tighter type signature for NaNMath.pow. closes #8
1 parent 6df371f commit bb67c53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NaNMath.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ end
1616
# Don't override built-in ^ operator
1717
pow(x::Float64, y::Float64) = ccall((:pow,Base.Math.libm), Float64, (Float64,Float64), x, y)
1818
pow(x::Float32, y::Float32) = ccall((:powf,Base.Math.libm), Float32, (Float32,Float32), x, y)
19-
pow(x,y) = pow(float(x),float(y))
19+
pow(x::Number,y::Number) = pow(float(x),float(y))
2020

2121
"""
2222
NaNMath.sum(A)

0 commit comments

Comments
 (0)