Commit 9f7811624af983ee6f12d205b955a645bfcc43f6

Francois Perrad 2015-10-17T18:27:56

add parentheses for explicit operator association

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tommath.h b/tommath.h
index b806c3b..742bb9a 100644
--- a/tommath.h
+++ b/tommath.h
@@ -200,7 +200,7 @@ extern int KARATSUBA_MUL_CUTOFF,
 #endif
 
 /* size of comba arrays, should be at least 2 * 2**(BITS_PER_WORD - BITS_PER_DIGIT*2) */
-#define MP_WARRAY               (1 << ((sizeof(mp_word) * CHAR_BIT) - (2 * DIGIT_BIT) + 1))
+#define MP_WARRAY               (1 << (((sizeof(mp_word) * CHAR_BIT) - (2 * DIGIT_BIT)) + 1))
 
 /* the infamous mp_int structure */
 typedef struct  {