diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-09-16 11:40:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-16 11:40:03 -0400 |
| commit | f56103605e5c5d5bf6e94e91797cab0f5101985c (patch) | |
| tree | cee0c61ea4a84b2d876ac7c69d38542967bfb919 /src/core/memory/cheat_engine.cpp | |
| parent | a821c64716bbbf5027a5678c18a923421cf9308b (diff) | |
| parent | 9264e1d1add8cd645d8e4ffd4d6233b6f3def50a (diff) | |
Merge pull request #11492 from lat9nq/c-numeric-conversions
general: Remove uncaught usages of C++ string number conversions
Diffstat (limited to 'src/core/memory/cheat_engine.cpp')
| -rw-r--r-- | src/core/memory/cheat_engine.cpp | 2 |
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; |
