Skip to content

Commit 2c6702d

Browse files
committed
Value won't be bigger than an int
1 parent dd62fd6 commit 2c6702d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bn_mp_todecimal_fast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ mp_err mp_todecimal_fast_rec(mp_int *number, mp_int *nL, mp_int *shiftL, mp_int
1616
char *next_piece = calloc(4, sizeof(char));
1717
int s_s = left ? snprintf(next_piece, 4, "%u", mp_get_i32(number)) : snprintf(next_piece, 4, "%03u",
1818
mp_get_i32(number));
19-
size_t r_s = strlen(*result);
19+
int r_s = (int)strlen(*result);
2020
(*result) = realloc(*result, r_s + s_s + 2);
2121
strcat(*result, next_piece);
2222
return MP_OKAY;

0 commit comments

Comments
 (0)