2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 17:32:55 +00:00

GCC Warning Suppression

[SVN r53659]
This commit is contained in:
Dave Abrahams
2009-06-05 20:15:01 +00:00
parent 22b65a1485
commit 6ffeca641c
5 changed files with 11 additions and 12 deletions

View File

@@ -26,7 +26,7 @@ namespace {
ssize_t str_size_as_py_ssize_t(std::size_t n)
{
if (n > ssize_t_max)
if (n > static_cast<std::size_t>(ssize_t_max))
{
throw std::range_error("str size > ssize_t_max");
}