fix -Wsign-compare warning in image_data.hpp
This commit is contained in:
parent
14015fefe4
commit
b396db54dd
1 changed files with 2 additions and 2 deletions
|
@ -89,8 +89,8 @@ struct image_dimensions
|
||||||
: width_(width),
|
: width_(width),
|
||||||
height_(height)
|
height_(height)
|
||||||
{
|
{
|
||||||
if (width < 0 || width > max_size) throw std::runtime_error("Invalid width for image dimensions requested");
|
if (width < 0 || static_cast<std::size_t>(width) > max_size) throw std::runtime_error("Invalid width for image dimensions requested");
|
||||||
if (height < 0 || height > max_size) throw std::runtime_error("Invalid height for image dimensions requested");
|
if (height < 0 || static_cast<std::size_t>(height) > max_size) throw std::runtime_error("Invalid height for image dimensions requested");
|
||||||
}
|
}
|
||||||
|
|
||||||
image_dimensions(image_dimensions const& other) = default;
|
image_dimensions(image_dimensions const& other) = default;
|
||||||
|
|
Loading…
Reference in a new issue