Commit 0de27bcbd92e7ec272fcfff6422d2d14aad748ff

Francois Perrad 2019-10-20T17:27:04

explicit operator precedence

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/mp_log_u32.c b/mp_log_u32.c
index 43748e5..2b49fe1 100644
--- a/mp_log_u32.c
+++ b/mp_log_u32.c
@@ -28,7 +28,7 @@ mp_err mp_log_u32(const mp_int *a, uint32_t base, uint32_t *c)
       return MP_OKAY;
    }
 
-   if (MP_HAS(S_MP_LOG_D) && a->used == 1) {
+   if (MP_HAS(S_MP_LOG_D) && (a->used == 1)) {
       *c = (uint32_t)s_mp_log_d(base, a->dp[0]);
       return MP_OKAY;
    }