summaryrefslogtreecommitdiff
path: root/src/core/memory
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-10-13 16:20:44 -0300
committerGitHub <noreply@github.com>2020-10-13 16:20:44 -0300
commitc5b3c8d06bcfa343b2cecbfc60b3530b306ebe88 (patch)
tree9565ff464bbb9e5a0aa66e6e310098314e88d019 /src/core/memory
parentd291fc1a517d0db07e4b32f5b4ad294c5e93e984 (diff)
parent39c8d18feba8eafcd43fbb55e73ae150a1947aad (diff)
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.cpp3
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 {
return {};
}
+ const auto value = static_cast<u32>(std::stoul(hex, nullptr, 0x10));
out[*current_entry].definition.opcodes[out[*current_entry].definition.num_opcodes++] =
- std::stoul(hex, nullptr, 0x10);
+ value;
i += 8;
} else {