1
0
mirror of synced 2025-01-11 05:42:15 +01:00

fix: Signed/Unsigned comparison error

This commit is contained in:
WerWolv 2025-01-04 13:03:38 +01:00
parent bbffdbf56f
commit 635a825095

View File

@ -1599,7 +1599,7 @@ namespace hex::plugin::builtin {
if (result < 0) { if (result < 0) {
const auto size = provider->getActualSize(); const auto size = provider->getActualSize();
if (-result > size) { if (u64(-result) > size) {
return std::nullopt; return std::nullopt;
} }