Skip to content

Commit a8b2808

Browse files
committed
Fix depwarn on 0.6 due to vectorized functions
1 parent cd22166 commit a8b2808

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

REQUIRE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
julia 0.4
2+
Compat 0.9.1

src/NaNMath.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
__precompile__()
22
module NaNMath
33

4+
using Compat
5+
46
for f in (:sin, :cos, :tan, :asin, :acos, :acosh, :atanh, :log, :log2, :log10,
57
:lgamma, :log1p)
68
@eval begin
79
($f)(x::Float64) = ccall(($(string(f)),Base.Math.libm), Float64, (Float64,), x)
810
($f)(x::Float32) = ccall(($(string(f,"f")),Base.Math.libm), Float32, (Float32,), x)
911
($f)(x::Real) = ($f)(float(x))
10-
@vectorize_1arg Number $f
12+
Compat.@dep_vectorize_1arg Number $f
1113
end
1214
end
1315

0 commit comments

Comments
 (0)