diff --git a/include/boost/system/detail/error_code.ipp b/include/boost/system/detail/error_code.ipp index 51ba3f4..77b191a 100644 --- a/include/boost/system/detail/error_code.ipp +++ b/include/boost/system/detail/error_code.ipp @@ -391,7 +391,7 @@ namespace boost::detail::winapi::MAKELANGID_(boost::detail::winapi::LANG_NEUTRAL_, boost::detail::winapi::SUBLANG_DEFAULT_), // Default language &buf[0], - buf.size(), + static_cast(buf.size()), NULL );