diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index a4cc8c395..a6734e0d4 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -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; }