diff options
author | Lioncash <mathew1800@gmail.com> | 2020-07-17 03:04:05 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-07-17 03:07:04 +0200 |
commit | e54c940abf2df1abf4dca69b28db7f13a5581b5f (patch) | |
tree | 70c76a8a11440204ab270ed133eb9ef0cc5950ab /src/core/hle | |
parent | Merge pull request #4292 from bunnei/mii-rewrite (diff) | |
download | yuzu-e54c940abf2df1abf4dca69b28db7f13a5581b5f.tar yuzu-e54c940abf2df1abf4dca69b28db7f13a5581b5f.tar.gz yuzu-e54c940abf2df1abf4dca69b28db7f13a5581b5f.tar.bz2 yuzu-e54c940abf2df1abf4dca69b28db7f13a5581b5f.tar.lz yuzu-e54c940abf2df1abf4dca69b28db7f13a5581b5f.tar.xz yuzu-e54c940abf2df1abf4dca69b28db7f13a5581b5f.tar.zst yuzu-e54c940abf2df1abf4dca69b28db7f13a5581b5f.zip |
Diffstat (limited to 'src/core/hle')
-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; |