explicit condition

This commit is contained in:
Francois Perrad 2019-04-10 15:21:54 +02:00
parent f5a4537f3c
commit b586fcbd30

View File

@ -7,7 +7,7 @@
static mp_word s_pow(mp_word base, mp_word exponent)
{
mp_word result = 1uLL;
while (exponent) {
while (exponent != 0u) {
if ((exponent & 0x1) == 1) {
result *= base;
}