Skip to content

Commit 4e76ff9

Browse files
committed
addition of necessary but forgotten cast
1 parent 75e074f commit 4e76ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bn_mp_to_radix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ mp_err mp_to_radix(const mp_int *a, char *str, size_t *maxlen, int radix)
6666
/* append a NULL so the string is properly terminated */
6767
*str = '\0';
6868
digs++;
69-
*maxlen = digs;
69+
*maxlen = (size_t)digs;
7070

7171
LBL_ERR:
7272
mp_clear(&t);

0 commit comments

Comments
 (0)