summaryrefslogtreecommitdiff
path: root/src/backend/access/spgist
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-11-26 07:46:33 +0100
committerPeter Eisentraut <peter@eisentraut.org>2025-11-26 07:48:29 +0100
commit8fe4aef8297b9f6b27a8f9422f3fdef1f79bb189 (patch)
tree3d048ce351b38d355174b2492c6e8ec175f86951 /src/backend/access/spgist
parent47c7a7ebc89eb6b8cf81c937885864f994784d38 (diff)
Replace internal C function pg_hypot() by standard hypot()
The code comment said, "It is expected that this routine will eventually be replaced with the C99 hypot() function.", so let's do that now. This function is tested via the geometry regression test, so if it is faulty on any platform, it will show up there. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/170308e6-a7a3-4484-87b2-f960bb564afa%40eisentraut.org
Diffstat (limited to 'src/backend/access/spgist')
-rw-r--r--src/backend/access/spgist/spgproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/spgist/spgproc.c b/src/backend/access/spgist/spgproc.c
index 660009291da..722c17ce2e5 100644
--- a/src/backend/access/spgist/spgproc.c
+++ b/src/backend/access/spgist/spgproc.c
@@ -51,7 +51,7 @@ point_box_distance(Point *point, BOX *box)
else
dy = 0.0;
- return HYPOT(dx, dy);
+ return hypot(dx, dy);
}
/*