Merge pull request #22 from DanielaE/fix/narrowing

std::basic_string::size() may return a size_type which is wider than …
This commit is contained in:
Peter Dimov
2017-12-16 18:58:38 +02:00
committed by GitHub

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__)