diff options
author | Peter Eisentraut | 2022-10-07 11:28:38 +0000 |
---|---|---|
committer | Peter Eisentraut | 2022-10-07 11:29:33 +0000 |
commit | f14aad5169baa5e2ac25d49f1d18f9d5cb3bc7f2 (patch) | |
tree | e26a18d755d474d8695e763ee118f48146d1bea6 /contrib/seg/seg.c | |
parent | 0fe954c28584169938e5c0738cfaa9930ce77577 (diff) |
Remove unnecessary uses of Abs()
Use C standard abs() or fabs() instead.
Reviewed-by: Zhang Mingli <zmlpostgres@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/4beb42b5-216b-bce8-d452-d924d5794c63%40enterprisedb.com
Diffstat (limited to 'contrib/seg/seg.c')
-rw-r--r-- | contrib/seg/seg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/seg/seg.c b/contrib/seg/seg.c index cb677e0ae51..9b58675266a 100644 --- a/contrib/seg/seg.c +++ b/contrib/seg/seg.c @@ -952,7 +952,7 @@ restore(char *result, float val, int n) } else { - if (Abs(exp) <= 4) + if (abs(exp) <= 4) { /* * remove the decimal point from the mantissa and write the digits @@ -1039,7 +1039,7 @@ restore(char *result, float val, int n) } } - /* do nothing for Abs(exp) > 4; %e must be OK */ + /* do nothing for abs(exp) > 4; %e must be OK */ /* just get rid of zeroes after [eE]- and +zeroes after [Ee]. */ /* ... this is not done yet. */ |