Fix 1.0 API difference + 0.7 Warning

This commit is contained in:
fundamental 2018-09-09 12:30:59 -04:00
parent b8800b0d05
commit 8a39e8ca9e
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -15,7 +15,7 @@
#License along with this library.
using Base.Test
using Test
using OSC
test_type = length(ARGS) == 1 ? ARGS[1] : "ALL"