Skip to content

Commit

Permalink
fix: Signed/Unsigned comparison error
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Jan 4, 2025
1 parent bbffdbf commit 635a825
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 635a825

Please sign in to comment.