std::basic_string::size() may return a size_type which is wider than an int.

Signed-off-by: Daniela Engert <dani@ngrt.de>
This commit is contained in:
Daniela Engert
2017-12-16 10:40:49 +01:00
parent 120860c397
commit 706659a97f

View File

@ -410,7 +410,7 @@ namespace
}
}
int num_chars = (buf.size() + 1) * 2;
int num_chars = static_cast<int>(buf.size() + 1) * 2;
boost::winapi::LPSTR_ narrow_buffer =
#if defined(__GNUC__)