mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Signed/Unsigned comparison error
This commit is contained in:
@@ -1599,7 +1599,7 @@ namespace hex::plugin::builtin {
|
||||
|
||||
if (result < 0) {
|
||||
const auto size = provider->getActualSize();
|
||||
if (-result > size) {
|
||||
if (u64(-result) > size) {
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user