From 3d7adf648330e739c8a5a66ba4ba7350abafb349 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 1 Mar 2022 16:55:45 +0100 Subject: [PATCH] patterns: Make std::mem::find_sequence_in_range return -1 when no sequence is found --- plugins/builtin/source/content/pl_builtin_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/pl_builtin_functions.cpp b/plugins/builtin/source/content/pl_builtin_functions.cpp index 6cba90b7e..fa98c5450 100644 --- a/plugins/builtin/source/content/pl_builtin_functions.cpp +++ b/plugins/builtin/source/content/pl_builtin_functions.cpp @@ -139,7 +139,7 @@ namespace hex::plugin::builtin { } } - LogConsole::abortEvaluation("failed to find sequence"); + return i128(-1); }); /* read_unsigned(address, size) */