Commit 3aa30329 authored by Martin Hurton's avatar Martin Hurton

Use correct types when returning value in read/write methods

parent 19f77a1c
...@@ -503,7 +503,7 @@ int zmq::stream_engine_t::write (const void *data_, size_t size_) ...@@ -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_) ...@@ -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
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment