diff --git a/Userland/Libraries/LibCrypto/BigInt/Algorithms/ModularPower.cpp b/Userland/Libraries/LibCrypto/BigInt/Algorithms/ModularPower.cpp index 15dca5a721..258f96b750 100644 --- a/Userland/Libraries/LibCrypto/BigInt/Algorithms/ModularPower.cpp +++ b/Userland/Libraries/LibCrypto/BigInt/Algorithms/ModularPower.cpp @@ -58,9 +58,9 @@ ALWAYS_INLINE static u32 inverse_wrapped(u32 value) { VERIFY(value & 1); - i64 b = static_cast(value); - i64 k0 = (2 - b); - i64 t = (b - 1); + u64 b = static_cast(value); + u64 k0 = (2 - b); + u64 t = (b - 1); size_t i = 1; while (i < 32) { t = t * t;