mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-18 01:33:58 +12:00
size_t -> usize
This commit is contained in:
parent
68a6d73a18
commit
6e65367e07
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ void retro_cheat_set(uint index, bool enabled, const char* code) {
|
||||||
std::string cheatCode = std::regex_replace(code, std::regex("[^0-9a-fA-F]"), "");
|
std::string cheatCode = std::regex_replace(code, std::regex("[^0-9a-fA-F]"), "");
|
||||||
std::vector<u8> bytes;
|
std::vector<u8> bytes;
|
||||||
|
|
||||||
for (size_t i = 0; i < cheatCode.size(); i += 2) {
|
for (usize i = 0; i < cheatCode.size(); i += 2) {
|
||||||
std::string hex = cheatCode.substr(i, 2);
|
std::string hex = cheatCode.substr(i, 2);
|
||||||
bytes.push_back((u8)std::stoul(hex, nullptr, 16));
|
bytes.push_back((u8)std::stoul(hex, nullptr, 16));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue