We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f84f87 commit a4f9818Copy full SHA for a4f9818
tommath_private.h
@@ -156,7 +156,7 @@ typedef private_mp_word mp_word;
156
#define MP_IS_EVEN(a) (((a)->used == 0) || (((a)->dp[0] & 1u) == 0u))
157
#define MP_IS_ODD(a) (((a)->used > 0) && (((a)->dp[0] & 1u) == 1u))
158
159
-#define MP_SIZEOF_BITS(type) (CHAR_BIT * sizeof(type))
+#define MP_SIZEOF_BITS(type) ((size_t)CHAR_BIT * sizeof(type))
160
#define MP_MAXFAST (int)(1uL << (MP_SIZEOF_BITS(mp_word) - (2u * (size_t)MP_DIGIT_BIT)))
161
162
/* Minimum number of available digits in mp_int, MP_PREC >= MP_MIN_PREC */
0 commit comments