Revert formatting change

This commit is contained in:
Adolfo E. García 2017-10-20 15:23:21 -06:00 committed by Janek Bevendorff
parent d21ae0f94a
commit 905e104ba2

View File

@ -109,8 +109,14 @@ QString QTotp::generateTotp(const QByteArray key,
QByteArray hmac = code.result();
int offset = (hmac[hmac.length() - 1] & 0xf);
int binary = ((hmac[offset] & 0x7f) << 24) | ((hmac[offset + 1] & 0xff) << 16) | ((hmac[offset + 2] & 0xff) << 8) |
(hmac[offset + 3] & 0xff);
// clang-format off
int binary =
((hmac[offset] & 0x7f) << 24)
| ((hmac[offset + 1] & 0xff) << 16)
| ((hmac[offset + 2] & 0xff) << 8)
| (hmac[offset + 3] & 0xff);
// clang-format on
quint32 digitsPower = pow(10, numDigits);