From 483f673c0d0a7efa49353dfbc10e82818cab98b6 Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 15 Aug 2019 06:17:03 +0300 Subject: [PATCH] warnings fixed --- contrib/epee/include/zlib_helper.h | 2 +- src/common/util.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;