From 438b5207f6eb2fe7d8d53c603b2c32a25a80db3b Mon Sep 17 00:00:00 2001 From: Joe Eli McIlvain Date: Sun, 2 Aug 2015 08:27:07 -0700 Subject: [PATCH] Remove type-pun in zmq.cpp to resolve issue #1500. --- src/zmq.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zmq.cpp b/src/zmq.cpp index 91104ffc..5f58b370 100644 --- a/src/zmq.cpp +++ b/src/zmq.cpp @@ -552,7 +552,7 @@ int zmq_recviov (void *s_, iovec *a_, size_t *count_, int flags_) memcpy(a_[i].iov_base,static_cast (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_;