mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-31 14:39:55 +01:00
Merge pull request #1501 from jemc/fix/issue-1500
Remove type-pun in zmq.cpp to resolve issue #1500.
This commit is contained in:
commit
57ef59352b
@ -552,7 +552,7 @@ int zmq_recviov (void *s_, iovec *a_, size_t *count_, int flags_)
|
||||
memcpy(a_[i].iov_base,static_cast<char *> (zmq_msg_data (&msg)),
|
||||
a_[i].iov_len);
|
||||
// Assume zmq_socket ZMQ_RVCMORE is properly set.
|
||||
recvmore = ((zmq::msg_t*) (void *) &msg)->flags () & zmq::msg_t::more;
|
||||
recvmore = ((zmq::msg_t*) &msg)->flags () & zmq::msg_t::more;
|
||||
rc = zmq_msg_close(&msg);
|
||||
errno_assert (rc == 0);
|
||||
++*count_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user