diff --git a/contrib/epee/include/zlib_helper.h b/contrib/epee/include/zlib_helper.h index bbd5044a..f63b5897 100644 --- a/contrib/epee/include/zlib_helper.h +++ b/contrib/epee/include/zlib_helper.h @@ -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(target.size())); result_packed_buff.resize(estimated_output_size_max, 'X'); zstream.next_in = (Bytef*)target.data(); diff --git a/src/common/util.cpp b/src/common/util.cpp index aa0ef880..c4c179b7 100644 --- a/src/common/util.cpp +++ b/src/common/util.cpp @@ -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 send_buf = { 010, 0, 0, 0, 0, 0, 0, 0, 0 }; + boost::array send_buf = { { 010, 0, 0, 0, 0, 0, 0, 0, 0 } }; socket.send_to(boost::asio::buffer(send_buf), receiver_endpoint); boost::array recv_buf;