mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-26 18:42:43 +01:00
Use correct types when returning value in read/write methods
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user