summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-05-03 18:31:57 +0200
committerGitHub <noreply@github.com>2020-05-03 18:31:57 +0200
commit9ffa72ad1fb8574ecda9e120d8a7fb930d053b01 (patch)
tree2bd8280d42b67f7396b279c767b20595841a3589 /Source
parent6e01855e8e93331e0a616bfa0bffb6c00dc76ede (diff)
parent312a3ba8c86b58e8b6829885365df6b9ae703a7d (diff)
Merge pull request #8691 from howard0su/warning_wiimote
WiimoteEmu: Cleanup warnings of -Wparentheses
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/HW/WiimoteEmu/Encryption.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/Core/HW/WiimoteEmu/Encryption.cpp b/Source/Core/Core/HW/WiimoteEmu/Encryption.cpp
index 8db42208f8..83d5314f9f 100644
--- a/Source/Core/Core/HW/WiimoteEmu/Encryption.cpp
+++ b/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]))),
};
}