mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-24 17:30:47 +02:00
Problem: Windows build gives warning on v2_decoder.cpp:130
Solution: add explicit cast
This commit is contained in:
@@ -125,7 +125,7 @@ int zmq::v2_decoder_t::size_ready(uint64_t msg_size, unsigned char const* read_p
|
|||||||
// construct message using n bytes from the buffer as storage
|
// construct message using n bytes from the buffer as storage
|
||||||
// increase buffer ref count
|
// increase buffer ref count
|
||||||
// if the message will be a large message, pass a valid refcnt memory location as well
|
// if the message will be a large message, pass a valid refcnt memory location as well
|
||||||
rc = in_progress.init( (unsigned char*)read_pos, msg_size,
|
rc = in_progress.init ((unsigned char *) read_pos, static_cast <size_t> (msg_size),
|
||||||
shared_message_memory_allocator::call_dec_ref, buffer(),
|
shared_message_memory_allocator::call_dec_ref, buffer(),
|
||||||
provide_refcnt ());
|
provide_refcnt ());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user