Commit 5f84f87fbf2ce38bb75bc16af388d84dc0e38d88

Francois Perrad 2019-05-18T11:12:07

explicit operator precedence

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/bn_deprecated.c b/bn_deprecated.c
index 90a4064..ca930d6 100644
--- a/bn_deprecated.c
+++ b/bn_deprecated.c
@@ -9,7 +9,7 @@ int mp_get_bit(const mp_int *a, int b)
    if (b < 0) {
       return MP_VAL;
    }
-   return s_mp_get_bit(a, (unsigned int)b) == MP_YES ? MP_YES : MP_NO;
+   return (s_mp_get_bit(a, (unsigned int)b) == MP_YES) ? MP_YES : MP_NO;
 }
 #endif
 #ifdef BN_S_MP_JACOBI_C