We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2202c9b + 065393a commit fd05c3eCopy full SHA for fd05c3e
src/mxarray.jl
@@ -60,7 +60,6 @@ typealias MxNum Union{MxRealNum, MxComplexNum}
60
61
typealias mwSize UInt
62
typealias mwIndex Int
63
-typealias mxChar UInt16
64
typealias mxClassID Cint
65
typealias mxComplexity Cint
66
@@ -643,7 +642,7 @@ function String(mx::MxArray)
643
642
if !(classid(mx) == mxCHAR_CLASS && ((ndims(mx) == 2 && nrows(mx) == 1) || is_empty(mx)))
644
throw(ArgumentError("String(mx::MxArray) only applies to strings (i.e. char vectors)"))
645
end
646
- return transcode(String, unsafe_wrap(Array, Ptr{mxChar}(data_ptr(mx)), ncols(mx)))
+ return transcode(String, unsafe_wrap(Array, Ptr{UInt16}(data_ptr(mx)), ncols(mx)))
647
648
649
function Dict(mx::MxArray)
0 commit comments