Skip to content

Commit 852909e

Browse files
authored
Merge pull request #76 from yuyichao/yyc/0.6
Fix typealias depwarn on 0.6
2 parents 048a560 + c0d927f commit 852909e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/FixedPointNumbers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ widen1(::Type{UInt64}) = UInt128
8282
widen1(::Type{UInt128}) = UInt128
8383
widen1(x::Integer) = x % widen1(typeof(x))
8484

85-
typealias ShortInts Union{Int8,UInt8,Int16,UInt16}
85+
const ShortInts = Union{Int8,UInt8,Int16,UInt16}
8686

8787
floattype{T<:ShortInts,f}(::Type{FixedPoint{T,f}}) = Float32
8888
floattype{T<:Integer,f}(::Type{FixedPoint{T,f}}) = Float64

src/fixed.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ for T in (Int8, Int16, Int32, Int64)
1717
for f in 0:sizeof(T)*8-1
1818
sym = Symbol(String(take!(showtype(_iotypealias, Fixed{T,f}))))
1919
@eval begin
20-
typealias $sym Fixed{$T,$f}
20+
const $sym = Fixed{$T,$f}
2121
export $sym
2222
end
2323
end

src/normed.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ for T in (UInt8, UInt16, UInt32, UInt64)
1515
for f in 0:sizeof(T)*8
1616
sym = Symbol(String(take!(showtype(_iotypealias, Normed{T,f}))))
1717
@eval begin
18-
typealias $sym Normed{$T,$f}
18+
const $sym = Normed{$T,$f}
1919
export $sym
2020
end
2121
end

0 commit comments

Comments
 (0)