mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-24 07:21:32 +01:00
Merge pull request #451 from hurtonm/use_correct_types_in_stream_engine
Use correct types when returning value in read/write methods
This commit is contained in:
commit
7523b9ed29
@ -503,7 +503,7 @@ int zmq::stream_engine_t::write (const void *data_, size_t size_)
|
||||
return -1;
|
||||
}
|
||||
|
||||
return (size_t) nbytes;
|
||||
return static_cast <int> (nbytes);
|
||||
|
||||
#endif
|
||||
}
|
||||
@ -563,7 +563,7 @@ int zmq::stream_engine_t::read (void *data_, size_t size_)
|
||||
if (nbytes == 0)
|
||||
return -1;
|
||||
|
||||
return (size_t) nbytes;
|
||||
return static_cast <int> (nbytes);
|
||||
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user