From e4c61bedcb791fe79fdc4e96a3a7ab59b0dbacaf Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 8 Oct 2022 13:41:18 +0200 Subject: Use fabsf() instead of Abs() or fabs() where appropriate This function is new in C99. Reviewed-by: Zhang Mingli Reviewed-by: Tom Lane Discussion: https://www.postgresql.org/message-id/flat/4beb42b5-216b-bce8-d452-d924d5794c63%40enterprisedb.com --- contrib/btree_gist/btree_float4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/btree_gist/btree_float4.c') diff --git a/contrib/btree_gist/btree_float4.c b/contrib/btree_gist/btree_float4.c index 3cbd9a06dcc..84ca5eee501 100644 --- a/contrib/btree_gist/btree_float4.c +++ b/contrib/btree_gist/btree_float4.c @@ -102,7 +102,7 @@ float4_dist(PG_FUNCTION_ARGS) if (unlikely(isinf(r)) && !isinf(a) && !isinf(b)) float_overflow_error(); - PG_RETURN_FLOAT4(Abs(r)); + PG_RETURN_FLOAT4(fabsf(r)); } -- cgit v1.2.3