Skip to content

Commit 42193f8

Browse files
committed
explicit operator precedence
1 parent cb8c00d commit 42193f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bn_mp_mul.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int mp_mul(const mp_int *a, const mp_int *b, mp_int *c)
2727
* was actually slower on the author's machine, but YMMV.
2828
*/
2929
if ((MIN(len_a, len_b) < KARATSUBA_MUL_CUTOFF)
30-
|| ((MAX(len_a, len_b)) / 2 < KARATSUBA_MUL_CUTOFF)) {
30+
|| ((MAX(len_a, len_b) / 2) < KARATSUBA_MUL_CUTOFF)) {
3131
goto GO_ON;
3232
}
3333
/*

tommath_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ int func_name (mp_int * a, type b) \
8080
while (b != 0u) { \
8181
a->dp[x++] = ((mp_digit)b & MP_MASK); \
8282
if ((CHAR_BIT * sizeof (b)) <= DIGIT_BIT) { break; } \
83-
b >>= ((CHAR_BIT * sizeof (b)) <= DIGIT_BIT ? 0 : DIGIT_BIT); \
83+
b >>= (((CHAR_BIT * sizeof (b)) <= DIGIT_BIT) ? 0 : DIGIT_BIT); \
8484
} \
8585
a->used = x; \
8686
} \

0 commit comments

Comments
 (0)