diff options
author | rbuj <[email protected]> | 2020-04-08 00:28:21 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2020-04-09 03:00:29 +0200 |
commit | 4bd2bd7da99284a4baa9cd5543cb04170dde9803 (patch) | |
tree | f6d9e82e68e1893620597a837a9057eb28b97fa4 /src/mp-serializer.c | |
parent | 8856b8a7812a5e555b3731e61e385ea40b49a219 (diff) | |
download | mate-calc-4bd2bd7da99284a4baa9cd5543cb04170dde9803.tar.bz2 mate-calc-4bd2bd7da99284a4baa9cd5543cb04170dde9803.tar.xz |
Use only one mp_clear statement per line
Diffstat (limited to 'src/mp-serializer.c')
-rw-r--r-- | src/mp-serializer.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/mp-serializer.c b/src/mp-serializer.c index 58f9030..896c843 100644 --- a/src/mp-serializer.c +++ b/src/mp-serializer.c @@ -173,7 +173,9 @@ mp_to_string_real(MpSerializer *serializer, const MPNumber *x, int base, gboolea b -= d * multiplier; } } - mp_clear(&number); mp_clear(&integer_component); mp_clear(&fractional_component); + mp_clear(&number); + mp_clear(&integer_component); + mp_clear(&fractional_component); mp_clear(&temp); } @@ -289,8 +291,14 @@ mp_to_exponential_string_real(MpSerializer *serializer, const MPNumber *x, GStri fixed = mp_to_string(serializer, &mantissa, n_digits); g_string_append(string, fixed); g_free(fixed); - mp_clear(&t); mp_clear(&z); mp_clear(&base); mp_clear(&base3); - mp_clear(&base10); mp_clear(&base10inv); mp_clear(&mantissa); + + mp_clear(&t); + mp_clear(&z); + mp_clear(&base); + mp_clear(&base3); + mp_clear(&base10); + mp_clear(&base10inv); + mp_clear(&mantissa); return exponent; } |