Skip to content

Commit

Permalink
Merge pull request #76 from yuyichao/yyc/0.6
Browse files Browse the repository at this point in the history
Fix typealias depwarn on 0.6
  • Loading branch information
vchuravy authored Feb 13, 2017
2 parents 048a560 + c0d927f commit 852909e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/FixedPointNumbers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ widen1(::Type{UInt64}) = UInt128
widen1(::Type{UInt128}) = UInt128
widen1(x::Integer) = x % widen1(typeof(x))

typealias ShortInts Union{Int8,UInt8,Int16,UInt16}
const ShortInts = Union{Int8,UInt8,Int16,UInt16}

floattype{T<:ShortInts,f}(::Type{FixedPoint{T,f}}) = Float32
floattype{T<:Integer,f}(::Type{FixedPoint{T,f}}) = Float64
Expand Down
2 changes: 1 addition & 1 deletion src/fixed.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ for T in (Int8, Int16, Int32, Int64)
for f in 0:sizeof(T)*8-1
sym = Symbol(String(take!(showtype(_iotypealias, Fixed{T,f}))))
@eval begin
typealias $sym Fixed{$T,$f}
const $sym = Fixed{$T,$f}
export $sym
end
end
Expand Down
2 changes: 1 addition & 1 deletion src/normed.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ for T in (UInt8, UInt16, UInt32, UInt64)
for f in 0:sizeof(T)*8
sym = Symbol(String(take!(showtype(_iotypealias, Normed{T,f}))))
@eval begin
typealias $sym Normed{$T,$f}
const $sym = Normed{$T,$f}
export $sym
end
end
Expand Down

0 comments on commit 852909e

Please sign in to comment.