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/cube/cube.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/cube/cube.c')
-rw-r--r-- | contrib/cube/cube.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/cube/cube.c b/contrib/cube/cube.c index 01c6a9c5563..4f32c5dc1d5 100644 --- a/contrib/cube/cube.c +++ b/contrib/cube/cube.c @@ -925,7 +925,7 @@ rt_cube_size(NDBOX *a, double *size) { result = 1.0; for (i = 0; i < DIM(a); i++) - result *= Abs(UR_COORD(a, i) - LL_COORD(a, i)); + result *= fabs(UR_COORD(a, i) - LL_COORD(a, i)); } *size = result; } |