8000 Use double for distance [skip ci] · postgrespro/pgvector@3126fbd · GitHub
[go: up one dir, main page]

Skip to content

Commit 3126fbd

Browse files
committed
Use double for distance [skip ci]
1 parent f4b67b0 commit 3126fbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hnswutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ HnswLoadElementFromTuple(HnswElement element, HnswElementTuple etup, bool loadHe
485485
/*
486486
* Calculate the distance between values
487487
*/
488-
static inline float
488+
static inline double
489489
HnswGetDistance(Datum a, Datum b, FmgrInfo *procinfo, Oid collation)
490490
{
491491
return DatumGetFloat8(FunctionCall2Coll(procinfo, collation, a, b));

0 commit comments

Comments
 (0)
0