From 0eef4a6c948d020b9c9ae7aa5a314ff5b7c04c27 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Wed, 13 Sep 2023 13:51:58 -0400 Subject: [PATCH] cheat_engine: Remove uncaught usage of stoul --- src/core/memory/cheat_engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp index 7b52f61a7..a06e99166 100644 --- a/src/core/memory/cheat_engine.cpp +++ b/src/core/memory/cheat_engine.cpp @@ -154,7 +154,7 @@ std::vector TextCheatParser::Parse(std::string_view data) const { return {}; } - const auto value = static_cast(std::stoul(hex, nullptr, 0x10)); + const auto value = static_cast(std::strtoul(hex.c_str(), nullptr, 0x10)); out[*current_entry].definition.opcodes[out[*current_entry].definition.num_opcodes++] = value;