Skip to content

Commit 6da4a4e

Browse files
authored
Merge pull request #12 from yuyichao/vectorize
Fix depwarn on 0.6 due to vectorized functions
2 parents cd22166 + 4eca064 commit 6da4a4e

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ os:
44
- osx
55
julia:
66
- 0.4
7+
- 0.5
78
- nightly
89
notifications:
910
email: false

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)