msvc: fix compiler warning on x86

This commit is contained in:
Luis Díaz Más 2021-04-25 17:12:14 +02:00
parent 0bd2ff32ad
commit 9de534976f

View File

@ -1292,7 +1292,7 @@ namespace Exiv2 {
if (newIdx < 0)
return 1;
if (static_cast<size_t>(newIdx) > p_->size_) {
if (newIdx > p_->size_) {
p_->eof_ = true;
return 1;
}