From 312a3ba8c86b58e8b6829885365df6b9ae703a7d Mon Sep 17 00:00:00 2001 From: Jun Su Date: Mon, 23 Mar 2020 14:18:42 +0800 Subject: [PATCH] WiimoteEmu: Cleanup warnings of -Wparentheses Add parentheses around operator ^. --- Source/Core/Core/HW/WiimoteEmu/Encryption.cpp | 12 ++++++------ 1 file 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; 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]))), }; }