Skip to content

Commit a4f9818

Browse files
committed
more cast
1 parent 5f84f87 commit a4f9818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tommath_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ typedef private_mp_word mp_word;
156156
#define MP_IS_EVEN(a) (((a)->used == 0) || (((a)->dp[0] & 1u) == 0u))
157157
#define MP_IS_ODD(a) (((a)->used > 0) && (((a)->dp[0] & 1u) == 1u))
158158

159-
#define MP_SIZEOF_BITS(type) (CHAR_BIT * sizeof(type))
159+
#define MP_SIZEOF_BITS(type) ((size_t)CHAR_BIT * sizeof(type))
160160
#define MP_MAXFAST (int)(1uL << (MP_SIZEOF_BITS(mp_word) - (2u * (size_t)MP_DIGIT_BIT)))
161161

162162
/* Minimum number of available digits in mp_int, MP_PREC >= MP_MIN_PREC */

0 commit comments

Comments
 (0)