Skip to content

Commit

Permalink
Read serialized value as array, not string. Fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
aviks committed Jan 26, 2013
1 parent 415a372 commit 91381fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zmq_serialize_julia.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 91381fa

Please sign in to comment.