Skip to content

Commit 9eef00e

Browse files
authored
Merge pull request #316 from texierp/fix/cast
Use C++ cast instead of old style cast
2 parents b0ac8ac + 82f6e93 commit 9eef00e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zmq.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ class socket_t
760760
{
761761
int nbytes = zmq_send(ptr, buf_, len_, flags_);
762762
if (nbytes >= 0)
763-
return (size_t) nbytes;
763+
return static_cast<size_t>(nbytes);
764764
if (zmq_errno() == EAGAIN)
765765
return 0;
766766
throw error_t();
@@ -790,7 +790,7 @@ class socket_t
790790
{
791791
int nbytes = zmq_recv(ptr, buf_, len_, flags_);
792792
if (nbytes >= 0)
793-
return (size_t) nbytes;
793+
return static_cast<size_t>(nbytes);
794794
if (zmq_errno() == EAGAIN)
795795
return 0;
796796
throw error_t();

0 commit comments

Comments
 (0)