forked from lthn/blockchain
warnings fixed
This commit is contained in:
parent
abb4517bd3
commit
483f673c0d
2 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ namespace zlib_helper
|
|||
int ret = deflateInit(&zstream, Z_DEFAULT_COMPRESSION);
|
||||
if(target.size())
|
||||
{
|
||||
size_t estimated_output_size_max = deflateBound(&zstream, target.size());
|
||||
size_t estimated_output_size_max = deflateBound(&zstream, static_cast<uLong>(target.size()));
|
||||
result_packed_buff.resize(estimated_output_size_max, 'X');
|
||||
|
||||
zstream.next_in = (Bytef*)target.data();
|
||||
|
|
|
|||
|
|
@ -600,7 +600,7 @@ std::string get_nix_version_display_string()
|
|||
boost::asio::ip::udp::socket socket(io_service);
|
||||
socket.open(boost::asio::ip::udp::v4());
|
||||
|
||||
boost::array<unsigned char, 48> send_buf = { 010, 0, 0, 0, 0, 0, 0, 0, 0 };
|
||||
boost::array<unsigned char, 48> send_buf = { { 010, 0, 0, 0, 0, 0, 0, 0, 0 } };
|
||||
socket.send_to(boost::asio::buffer(send_buf), receiver_endpoint);
|
||||
|
||||
boost::array<unsigned long, 1024> recv_buf;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue