diff --git a/src/tags_int.cpp b/src/tags_int.cpp index b08acb82..a1d6a88c 100644 --- a/src/tags_int.cpp +++ b/src/tags_int.cpp @@ -2610,7 +2610,7 @@ namespace Exiv2 { // Add 0.5 for rounding. const double x = tmp + 0.5; // Check that x is within the range of a uint32_t before casting. - if (0 <= x && x <= std::numeric_limits::max()) { + if (x <= std::numeric_limits::max()) { ur.second = static_cast(x); } }