From 91381faff08d27141696a43d7970aa50e32a8cf8 Mon Sep 17 00:00:00 2001 From: Avik Sengupta Date: Sat, 26 Jan 2013 02:33:12 +0000 Subject: [PATCH] Read serialized value as array, not string. Fix #5 --- src/zmq_serialize_julia.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zmq_serialize_julia.jl b/src/zmq_serialize_julia.jl index c91d169..e1c822d 100644 --- a/src/zmq_serialize_julia.jl +++ b/src/zmq_serialize_julia.jl @@ -13,8 +13,8 @@ function zmq_serialize(socket::ZMQSocket, x, flag::Integer) # also requires that we prevent s from being garbage-collected # until the callback is called. So the C wrapper should increase # the reference count on s, and the callback should decrease it. - # Here, for simplicity we just make another copy. - zmsg = ZMQMessage(takebuf_string(s)) + # Here, for simplicity we sjust make another copy. + zmsg = ZMQMessage(takebuf_array(s)) send(socket, zmsg, flag) end zmq_serialize(socket::ZMQSocket, x) = zmq_serialize(socket, x, 0)