Commit bb1e56e775781ee1347fb66b563f83f9ff7cd223

Jan Nijtmans 2019-11-12T16:20:07

Fix compilation of demo/test.c using C++

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/demo/test.c b/demo/test.c
index 66a6f07..281255b 100644
--- a/demo/test.c
+++ b/demo/test.c
@@ -1411,7 +1411,7 @@ static mp_err s_rs(const mp_int *a, int radix, int *size)
       *size = mp_count_bits(a) + 1;
       return MP_OKAY;
    }
-   DOR(mp_init_copy(&t, a));
+   DO_WHAT(mp_init_copy(&t, a), return MP_ERR);
    t.sign = MP_ZPOS;
    while (!mp_iszero(&t)) {
       if ((res = mp_div_d(&t, (mp_digit)radix, &t, &d)) != MP_OKAY) {