From 8a39e8ca9edd9ec63aeeaa96badbb55d585fd4cb Mon Sep 17 00:00:00 2001 From: fundamental Date: Sun, 9 Sep 2018 12:30:59 -0400 Subject: [PATCH] Fix 1.0 API difference + 0.7 Warning --- src/OSC.jl | 5 ++++- test/runtests.jl | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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"