diff options
author | bunnei <bunneidev@gmail.com> | 2020-07-18 02:13:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-18 02:13:06 +0200 |
commit | 47b305387a57357dea18ab6313d211bb785de530 (patch) | |
tree | 830d926e9342f9572bd242a0f8a8ad0bec6bc964 /src | |
parent | Merge pull request #4344 from VolcaEM/c3 (diff) | |
parent | mii/manager: Resolve sign mismatch warnings (diff) | |
download | yuzu-47b305387a57357dea18ab6313d211bb785de530.tar yuzu-47b305387a57357dea18ab6313d211bb785de530.tar.gz yuzu-47b305387a57357dea18ab6313d211bb785de530.tar.bz2 yuzu-47b305387a57357dea18ab6313d211bb785de530.tar.lz yuzu-47b305387a57357dea18ab6313d211bb785de530.tar.xz yuzu-47b305387a57357dea18ab6313d211bb785de530.tar.zst yuzu-47b305387a57357dea18ab6313d211bb785de530.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/mii/manager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/mii/manager.cpp b/src/core/hle/service/mii/manager.cpp index 4a1d1182e..131cafac3 100644 --- a/src/core/hle/service/mii/manager.cpp +++ b/src/core/hle/service/mii/manager.cpp @@ -104,9 +104,9 @@ MiiInfo ConvertStoreDataToInfo(const MiiStoreData& data) { u16 GenerateCrc16(const void* data, std::size_t size) { s32 crc{}; - for (int i = 0; i < size; i++) { - crc ^= reinterpret_cast<const u8*>(data)[i] << 8; - for (int j = 0; j < 8; j++) { + for (std::size_t i = 0; i < size; i++) { + crc ^= static_cast<const u8*>(data)[i] << 8; + for (std::size_t j = 0; j < 8; j++) { crc <<= 1; if ((crc & 0x10000) != 0) { crc = (crc ^ 0x1021) & 0xFFFF; |