summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-07-17 03:04:05 +0200
committerLioncash <mathew1800@gmail.com>2020-07-17 03:07:04 +0200
commite54c940abf2df1abf4dca69b28db7f13a5581b5f (patch)
tree70c76a8a11440204ab270ed133eb9ef0cc5950ab /src/core
parentMerge pull request #4292 from bunnei/mii-rewrite (diff)
downloadyuzu-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')
-rw-r--r--src/core/hle/service/mii/manager.cpp6
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;