Use correct types when returning value in read/write methods

This commit is contained in:
Martin Hurton
2012-09-29 13:28:25 +02:00
parent 19f77a1ccf
commit 3aa30329d1

View File

@@ -503,7 +503,7 @@ int zmq::stream_engine_t::write (const void *data_, size_t size_)
return -1; return -1;
} }
return (size_t) nbytes; return static_cast <int> (nbytes);
#endif #endif
} }
@@ -563,7 +563,7 @@ int zmq::stream_engine_t::read (void *data_, size_t size_)
if (nbytes == 0) if (nbytes == 0)
return -1; return -1;
return (size_t) nbytes; return static_cast <int> (nbytes);
#endif #endif
} }