From 3126fbdb6f24fe32fe6ace7a83d72c4fdabab69c Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 9 Oct 2024 17:04:25 -0700 Subject: [PATCH] Use double for distance [skip ci] --- src/hnswutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hnswutils.c b/src/hnswutils.c index a7eb819..856c309 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -485,7 +485,7 @@ HnswLoadElementFromTuple(HnswElement element, HnswElementTuple etup, bool loadHe /* * Calculate the distance between values */ -static inline float +static inline double HnswGetDistance(Datum a, Datum b, FmgrInfo *procinfo, Oid collation) { return DatumGetFloat8(FunctionCall2Coll(procinfo, collation, a, b));