gettext: fix build with gcc-14; enhance test environment
[oi-userland.git] / components / desktop / keepassxc / patches / 02-pow-totp.cpp.patch
blob5b09ba9147273d33e4acbc2e4e4f847d3af373a7
1 diff --git a/src/core/Totp.cpp b/src/core/Totp.cpp
2 index 82d9bb8..07f5287 100644
3 --- a/src/core/Totp.cpp
4 +++ b/src/core/Totp.cpp
5 @@ -238,7 +238,7 @@ QString Totp::generateTotp(const QSharedPointer<Totp::Settings>& settings, const
6 direction = 1;
7 startpos = 0;
9 - quint32 digitsPower = pow(encoder.alphabet.size(), digits);
10 + quint32 digitsPower = pow((double)encoder.alphabet.size(), (double)digits);
12 quint64 password = binary % digitsPower;
13 QString retval(int(digits), encoder.alphabet[0]);