diff --git a/include/boost/system/detail/error_code.ipp b/include/boost/system/detail/error_code.ipp index a2b3f11..b712de7 100644 --- a/include/boost/system/detail/error_code.ipp +++ b/include/boost/system/detail/error_code.ipp @@ -410,7 +410,7 @@ namespace } } - int num_chars = (buf.size() + 1) * 2; + int num_chars = static_cast(buf.size() + 1) * 2; boost::winapi::LPSTR_ narrow_buffer = #if defined(__GNUC__)