Remove unnecessary casts

This commit is contained in:
Martin Hurton
2012-05-27 22:51:56 +02:00
parent e0534643fa
commit ac53f1a728
2 changed files with 3 additions and 3 deletions

View File

@@ -302,7 +302,7 @@ int zmq::stream_engine_t::write (const void *data_, size_t size_)
return -1;
wsa_assert (nbytes != SOCKET_ERROR);
return (size_t) nbytes;
return nbytes;
#else
@@ -354,7 +354,7 @@ int zmq::stream_engine_t::read (void *data_, size_t size_)
if (nbytes == 0)
return -1;
return (size_t) nbytes;
return nbytes;
#else