Commit 64298b9a91911b8b60c21de0ff0e197216c433db

Francois Perrad 2018-12-27T18:04:25

refactor without macro SIGN

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/bn_mp_set_double.c b/bn_mp_set_double.c
index 76f6293..2a34a0f 100644
--- a/bn_mp_set_double.c
+++ b/bn_mp_set_double.c
@@ -42,7 +42,7 @@ int mp_set_double(mp_int *a, double b)
    }
 
    if (((cast.bits >> 63) != 0ULL) && (mp_iszero(a) == MP_NO)) {
-      SIGN(a) = MP_NEG;
+      a->sign = MP_NEG;
    }
 
    return MP_OKAY;