Skip to content

Commit 8b87516

Browse files
authored
Update deprecated typealias keyword
1 parent 9ccdd3d commit 8b87516

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/mxarray.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,20 @@ function unsafe_convert(::Type{Ptr{Void}}, mx::MxArray)
4848
end
4949
# functions to create mxArray from Julia values/arrays
5050

51-
typealias MxRealNum Union{Float64,Float32,Int32,UInt32,Int64,UInt64,Int16,UInt16,Int8,UInt8,Bool}
52-
typealias MxComplexNum Union{Complex64, Complex128}
53-
typealias MxNum Union{MxRealNum, MxComplexNum}
51+
const MxRealNum = Union{Float64, Float32, Int32, UInt32, Int64, UInt64, Int16, UInt16, Int8, UInt8, Bool}
52+
const MxComplexNum = Union{Complex64, Complex128}
53+
const MxNum = Union{MxRealNum, MxComplexNum}
5454

5555
###########################################################
5656
#
5757
# MATLAB types
5858
#
5959
###########################################################
6060

61-
typealias mwSize UInt
62-
typealias mwIndex Int
63-
typealias mxClassID Cint
64-
typealias mxComplexity Cint
61+
const mwSize = UInt
62+
const mwIndex = Int
63+
const mxClassID = Cint
64+
const mxComplexity = Cint
6565

6666
const mxUNKNOWN_CLASS = convert(mxClassID, 0)
6767
const mxCELL_CLASS = convert(mxClassID, 1)
@@ -432,7 +432,7 @@ function get_fieldname(mx::MxArray, i::Integer)
432432
unsafe_string(p)
433433
end
434434

435-
typealias Pairs Union{Pair,NTuple{2}}
435+
const Pairs = Union{Pair, NTuple{2}}
436436

437437
function mxstruct(pairs::Pairs...)
438438
nf = length(pairs)

0 commit comments

Comments
 (0)