Commit 6ba670909e43eebac01b27c0c3353e946beb7c41

Steffen Jaeckel 2019-10-18T10:16:49

use labs() instead of abs()

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/mtest/mpi.c b/mtest/mpi.c
index 95c3811..7e71ad6 100644
--- a/mtest/mpi.c
+++ b/mtest/mpi.c
@@ -494,7 +494,7 @@ void   mp_set(mp_int *mp, mp_digit d)
 mp_err mp_set_int(mp_int *mp, long z)
 {
   int            ix;
-  unsigned long  v = abs(z);
+  unsigned long  v = labs(z);
   mp_err         res;
 
   ARGCHK(mp != NULL, MP_BADARG);