Fix 1.0 API difference + 0.7 Warning
This commit is contained in:
parent
b8800b0d05
commit
8a39e8ca9e
|
@ -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
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#License along with this library.
|
||||
|
||||
|
||||
using Base.Test
|
||||
using Test
|
||||
using OSC
|
||||
|
||||
test_type = length(ARGS) == 1 ? ARGS[1] : "ALL"
|
||||
|
|
Loading…
Reference in New Issue