aboutsummaryrefslogtreecommitdiff
path: root/src/core/memory
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-09-13 13:51:58 -0400
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-09-13 13:51:58 -0400
commitd7d4e66657a893fb3d1619b4bc464879d79f4dd2 (patch)
treea71247e1451b6914a0334ec6db597f11b1a7a98f /src/core/memory
parent41a08286c8e580fb720424e91dd4e5f152ba440a (diff)
cheat_engine: Remove uncaught usage of stoul
Diffstat (limited to 'src/core/memory')
-rw-r--r--src/core/memory/cheat_engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp
index 7b52f61a7f..a06e991667 100644
--- a/src/core/memory/cheat_engine.cpp
+++ b/src/core/memory/cheat_engine.cpp
@@ -154,7 +154,7 @@ std::vector<CheatEntry> TextCheatParser::Parse(std::string_view data) const {
return {};
}
- const auto value = static_cast<u32>(std::stoul(hex, nullptr, 0x10));
+ const auto value = static_cast<u32>(std::strtoul(hex.c_str(), nullptr, 0x10));
out[*current_entry].definition.opcodes[out[*current_entry].definition.num_opcodes++] =
value;