Commit b2d29b43340fa1c6d8337ac6a4163662d9fc3187

Francois Perrad 2019-10-07T19:22:46

explicit operator precedence

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/bn_mp_to_radix.c b/bn_mp_to_radix.c
index ad12142..3793a6f 100644
--- a/bn_mp_to_radix.c
+++ b/bn_mp_to_radix.c
@@ -77,7 +77,7 @@ mp_err mp_to_radix(const mp_int *a, char *str, size_t maxlen, size_t *written, i
    *str = '\0';
    digs++;
    if (written != NULL) {
-      *written = (a->sign == MP_NEG) ? digs + 1u: digs;
+      *written = (a->sign == MP_NEG) ? (digs + 1u): digs;
    }
 
 LBL_ERR: