Skip to content

Commit af8be3a

Browse files
committed
Silence another warning
1 parent 12af2b3 commit af8be3a

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
@@ -17,7 +17,7 @@ mp_err mp_todecimal_fast_rec(mp_int *number, mp_int *nL, mp_int *shiftL, mp_int
1717
int s_s = left ? snprintf(next_piece, 4, "%u", mp_get_i32(number)) : snprintf(next_piece, 4, "%03u",
1818
mp_get_i32(number));
1919
int r_s = (int)strlen(*result);
20-
(*result) = realloc(*result, r_s + s_s + 2);
20+
(*result) = realloc(*result, (size_t) (r_s + s_s + 2));
2121
strcat(*result, next_piece);
2222
return MP_OKAY;
2323
}

0 commit comments

Comments
 (0)