Commit b586fcbd3031285b8bd121db726ab57171b23b17

Francois Perrad 2019-04-10T15:21:54

explicit condition

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/bn_mp_ilogb.c b/bn_mp_ilogb.c
index b47cde3..32163d7 100644
--- a/bn_mp_ilogb.c
+++ b/bn_mp_ilogb.c
@@ -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;
       }