Skip to content

Commit dd62fd6

Browse files
committed
Get right type
1 parent 39329b0 commit dd62fd6

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
@@ -141,7 +141,7 @@ mp_err mp_todecimal_fast(mp_int *number, char **result)
141141
if ((err = mp_mul(&M4, &n, &M4)) != MP_OKAY) {
142142
goto LBL_ERR;
143143
}
144-
if ((err = mp_div_2d(&M4, mp_get_l(&shift) + 6, &M4, NULL)) != MP_OKAY) {
144+
if ((err = mp_div_2d(&M4, mp_get_i32(&shift) + 6, &M4, NULL)) != MP_OKAY) {
145145
goto LBL_ERR;
146146
}
147147
if ((err = mp_mul_2(&M2, &M2)) != MP_OKAY) {

0 commit comments

Comments
 (0)