diff --git a/src/OSC.jl b/src/OSC.jl index 1ead52e..b6ec078 100644 --- a/src/OSC.jl +++ b/src/OSC.jl @@ -279,7 +279,7 @@ function rtosc_argument(msg::OscMsg, idx::Int) return reinterpret(Int32, i) end elseif typeChar in "m" - m = Array{UInt8}(4) + m = Array{UInt8}(undef, 4) m[1] = msg.data[@incfp(arg_pos)] m[2] = msg.data[@incfp(arg_pos)] m[3] = msg.data[@incfp(arg_pos)] @@ -332,6 +332,9 @@ function showField(io::IO, msg::OscMsg, arg_id) if typeof(value) <: Array value = value' end + if(value == nothing) + value = "nothing" + end @printf(io, " #%2d %c:", arg_id, typeChar) println(dict[typeChar]," - ", value) end diff --git a/test/runtests.jl b/test/runtests.jl index 83a947c..d907cdc 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -15,7 +15,7 @@ #License along with this library. -using Base.Test +using Test using OSC test_type = length(ARGS) == 1 ? ARGS[1] : "ALL"