summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-07-18 02:13:06 +0200
committerGitHub <noreply@github.com>2020-07-18 02:13:06 +0200
commit47b305387a57357dea18ab6313d211bb785de530 (patch)
tree830d926e9342f9572bd242a0f8a8ad0bec6bc964
parentMerge pull request #4344 from VolcaEM/c3 (diff)
parentmii/manager: Resolve sign mismatch warnings (diff)
downloadyuzu-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
-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;