summaryrefslogtreecommitdiff
path: root/src/core/memory
diff options
context:
space:
mode:
authorGravatar liamwhite2023-09-16 11:40:03 -0400
committerGravatar GitHub2023-09-16 11:40:03 -0400
commitc05ea35f78bd4de663bc022a7048e88d6ade594b (patch)
treecee0c61ea4a84b2d876ac7c69d38542967bfb919 /src/core/memory
parentMerge pull request #11483 from FearlessTobi/save-size-max (diff)
parentshared_widget: Use default literals more (diff)
downloadyuzu-c05ea35f78bd4de663bc022a7048e88d6ade594b.tar.gz
yuzu-c05ea35f78bd4de663bc022a7048e88d6ade594b.tar.xz
yuzu-c05ea35f78bd4de663bc022a7048e88d6ade594b.zip
Merge pull request #11492 from lat9nq/c-numeric-conversions
general: Remove uncaught usages of C++ string number conversions
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 7b52f61a7..a06e99166 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 {
154 return {}; 154 return {};
155 } 155 }
156 156
157 const auto value = static_cast<u32>(std::stoul(hex, nullptr, 0x10)); 157 const auto value = static_cast<u32>(std::strtoul(hex.c_str(), nullptr, 0x10));
158 out[*current_entry].definition.opcodes[out[*current_entry].definition.num_opcodes++] = 158 out[*current_entry].definition.opcodes[out[*current_entry].definition.num_opcodes++] =
159 value; 159 value;
160 160