Skip to content
Permalink
Browse files

WiimoteEmu: Cleanup warnings of -Wparentheses

Add parentheses around operator ^.
  • Loading branch information
howard0su committed Mar 23, 2020
1 parent 6270798 commit 3aa8b7f548ea588ac739c563a6d3c4878cd72aa9
Showing with 6 additions and 6 deletions.
  1. +6 −6 Source/Core/Core/HW/WiimoteEmu/Encryption.cpp
@@ -478,12 +478,12 @@ EncryptionKey::KeyData KeyGen3rdParty::GenerateKeyData(const EncryptionKey::Rand
auto& rol8 = Common::RotateLeft<u8>;

return {
u8(t0[7] ^ t0[6] + rol8(ans[0] ^ t0[0], t0[1])),
u8(t0[1] ^ t0[3] + rol8(ans[1] ^ t0[4], t0[2])),
u8(t0[5] ^ t0[4] + rol8(ans[2] ^ t0[2], t0[8])),
u8(t0[0] ^ t0[7] + rol8(ans[3] ^ t0[6], t0[9])),
u8(t0[1] ^ t0[8] + rol8(ans[4] ^ t0[5], t0[4])),
u8(t0[5] ^ t0[8] + rol8(ans[5] ^ t0[9], t0[3])),
u8((t0[7] ^ t0[6]) + rol8(ans[0] ^ t0[0], t0[1])),
u8((t0[1] ^ t0[3]) + rol8(ans[1] ^ t0[4], t0[2])),
u8((t0[5] ^ t0[4]) + rol8(ans[2] ^ t0[2], t0[8])),
u8((t0[0] ^ t0[7]) + rol8(ans[3] ^ t0[6], t0[9])),
u8((t0[1] ^ t0[8]) + rol8(ans[4] ^ t0[5], t0[4])),
u8((t0[5] ^ t0[8]) + rol8(ans[5] ^ t0[9], t0[3])),
};
}

0 comments on commit 3aa8b7f

Please sign in to comment.
You can’t perform that action at this time.