fix: Signed/Unsigned comparison error
This commit is contained in:
parent
bbffdbf56f
commit
635a825095
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user