Skip to content

Commit d7349ab

Browse files
committed
0.3 compatibility
1 parent 21ba350 commit d7349ab

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/Combinatorics.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function doublefactorial(n::Integer)
6262
end
6363
z = BigInt()
6464
ccall((:__gmpz_2fac_ui, :libgmp), Void,
65-
(Ptr{BigInt}, UInt), &z, UInt(n))
65+
(Ptr{BigInt}, UInt), &z, @compat(UInt(n)))
6666
return z
6767
end
6868

@@ -72,7 +72,7 @@ function fibonacci(n::Integer)
7272
end
7373
z = BigInt()
7474
ccall((:__gmpz_fib_ui, :libgmp), Void,
75-
(Ptr{BigInt}, UInt), &z, UInt(n))
75+
(Ptr{BigInt}, UInt), &z, @compat(UInt(n)))
7676
return z
7777
end
7878

@@ -109,7 +109,7 @@ function lucas(n::Integer)
109109
end
110110
z = BigInt()
111111
ccall((:__gmpz_lucnum_ui, :libgmp), Void,
112-
(Ptr{BigInt}, UInt), &z, UInt(n))
112+
(Ptr{BigInt}, UInt), &z, @compat(UInt(n)))
113113
return z
114114
end
115115

@@ -119,7 +119,7 @@ function multifactorial(n::Integer, m::Integer)
119119
end
120120
z = BigInt()
121121
ccall((:__gmpz_mfac_uiui, :libgmp), Void,
122-
(Ptr{BigInt}, UInt, UInt), &z, UInt(n), UInt(m))
122+
(Ptr{BigInt}, UInt, UInt), &z, @compat(UInt(n)), @compat(UInt(m)))
123123
return z
124124
end
125125

@@ -140,7 +140,7 @@ function primorial(n::Integer)
140140
end
141141
z = BigInt()
142142
ccall((:__gmpz_primorial_ui, :libgmp), Void,
143-
(Ptr{BigInt}, UInt), &z, UInt(n))
143+
(Ptr{BigInt}, UInt), &z, @compat(UInt(n)))
144144
return z
145145
end
146146

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Combinatorics
22
using Base.Test
3+
using Compat
34
include("basic.jl")
45
include("youngdiagrams.jl")
56

0 commit comments

Comments
 (0)