From 9945ed5ebef71c109141d00aa4bf4b8f2f484ae4 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Tue, 3 Jan 2017 21:24:24 -0500 Subject: [PATCH] update for JuliaLang#19449 --- src/ZMQ.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZMQ.jl b/src/ZMQ.jl index d5a6902..4b021e4 100644 --- a/src/ZMQ.jl +++ b/src/ZMQ.jl @@ -403,7 +403,7 @@ type Message <: AbstractArray{UInt8,1} # or even written to after the message is sent!) Message(m::String) = Message(m, unsafe_convert(Ptr{UInt8}, pointer(m)), sizeof(m)) Message{T<:String}(p::SubString{T}) = - Message(p, pointer(p.string.data)+p.offset, sizeof(p)) + Message(p, pointer(p.string)+p.offset, sizeof(p)) Message(a::Array) = Message(a, pointer(a), sizeof(a)) function Message(io::IOBuffer) if !io.readable || !io.seekable