diff options
| author | 2020-10-13 16:20:44 -0300 | |
|---|---|---|
| committer | 2020-10-13 16:20:44 -0300 | |
| commit | c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88 (patch) | |
| tree | 9565ff464bbb9e5a0aa66e6e310098314e88d019 /src/core/memory | |
| parent | Merge pull request #3929 from FearlessTobi/ticket-keys (diff) | |
| parent | core/CMakeLists: Make some warnings errors (diff) | |
| download | yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.tar.gz yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.tar.xz yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.zip | |
Merge pull request #4786 from lioncash/flags
core/CMakeLists: Make some warnings errors
Diffstat (limited to 'src/core/memory')
| -rw-r--r-- | src/core/memory/cheat_engine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp index 29284a42d..2dd0eb0f8 100644 --- a/src/core/memory/cheat_engine.cpp +++ b/src/core/memory/cheat_engine.cpp | |||
| @@ -153,8 +153,9 @@ std::vector<CheatEntry> TextCheatParser::Parse(std::string_view data) const { | |||
| 153 | return {}; | 153 | return {}; |
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | const auto value = static_cast<u32>(std::stoul(hex, nullptr, 0x10)); | ||
| 156 | out[*current_entry].definition.opcodes[out[*current_entry].definition.num_opcodes++] = | 157 | out[*current_entry].definition.opcodes[out[*current_entry].definition.num_opcodes++] = |
| 157 | std::stoul(hex, nullptr, 0x10); | 158 | value; |
| 158 | 159 | ||
| 159 | i += 8; | 160 | i += 8; |
| 160 | } else { | 161 | } else { |