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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user