Skip to content

Commit

Permalink
Fix 0.6 typealias depwarn (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao authored and ararslan committed Feb 13, 2017
1 parent e498d0a commit 9906dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Primes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if VERSION >= v"0.5.0-dev+4340"
using Base: BitSigned
using Base.Checked.checked_neg
else
typealias BitSigned Union{Int128,Int16,Int32,Int64,Int8}
const BitSigned = Union{Int128,Int16,Int32,Int64,Int8}
function checked_neg(x::Integer)
y = -x
(y < 0) == (x < 0) && throw(OverflowError())
Expand Down

0 comments on commit 9906dcd

Please sign in to comment.