From da8ec1565eb6c0cc19e5cac17124dcc288533078 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 18 Dec 2022 14:17:57 +0100 Subject: [PATCH] fix: Floating point finding not working with negative values --- plugins/builtin/source/content/views/view_find.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/views/view_find.cpp b/plugins/builtin/source/content/views/view_find.cpp index da283e580..05dfb8b0a 100644 --- a/plugins/builtin/source/content/views/view_find.cpp +++ b/plugins/builtin/source/content/views/view_find.cpp @@ -161,7 +161,7 @@ namespace hex::plugin::builtin { if (result.ec != std::errc() || result.ptr != string.data() + string.size()) return { false, { }, 0 }; - if (value < std::numeric_limits::min() || value > std::numeric_limits::max()) + if (value < std::numeric_limits::lowest() || value > std::numeric_limits::max()) return { false, { }, 0 }; return { true, value, sizeof(Type) };