1
0
Fork 0
forked from lthn/blockchain

warnings fixed

This commit is contained in:
sowle 2019-08-15 06:17:03 +03:00
parent abb4517bd3
commit 483f673c0d
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
2 changed files with 2 additions and 2 deletions

View file

@ -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();

View file

@ -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;