Skip to content

Commit bb1e56e

Browse files
nijtmanssjaeckel
authored andcommitted
Fix compilation of demo/test.c using C++
1 parent 0730a31 commit bb1e56e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/test.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ static mp_err s_rs(const mp_int *a, int radix, int *size)
14111411
*size = mp_count_bits(a) + 1;
14121412
return MP_OKAY;
14131413
}
1414-
DOR(mp_init_copy(&t, a));
1414+
DO_WHAT(mp_init_copy(&t, a), return MP_ERR);
14151415
t.sign = MP_ZPOS;
14161416
while (!mp_iszero(&t)) {
14171417
if ((res = mp_div_d(&t, (mp_digit)radix, &t, &d)) != MP_OKAY) {

0 commit comments

Comments
 (0)