Commit 9d63882d5097812c157d4fdba6b0df0e8922b105

Francois Perrad 2019-03-26T18:42:18

explicit condition

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tommath_private.h b/tommath_private.h
index c426667..725aa4b 100644
--- a/tommath_private.h
+++ b/tommath_private.h
@@ -94,7 +94,7 @@ int func_name (mp_int * a, type b)                       \
    int res = mp_grow(a, new_size);                       \
    if (res == MP_OKAY) {                                 \
      mp_zero(a);                                         \
-     while (b) {                                         \
+     while (b != 0u) {                                   \
         a->dp[x++] = ((mp_digit)b & MP_MASK);            \
         b >>= DIGIT_BIT;                                 \
      }                                                   \