From 635a82509523e742cef6834e23cd08e7909eb984 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 4 Jan 2025 13:03:38 +0100 Subject: [PATCH] fix: Signed/Unsigned comparison error --- plugins/builtin/source/content/views/view_pattern_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }