Просмотр исходного кода

cheat_engine: Remove uncaught usage of stoul

lat9nq 2 лет назад
Родитель
Сommit
0eef4a6c94
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/core/memory/cheat_engine.cpp

+ 1 - 1
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;