pgvector.git / summary / log / commit / refs
commit ac65ec2856ec32973b7798d22f68367b84ef7cb8
Author: Andrew Kane <andrew@ankane.org>
Date: Tue Feb 15 03:38:59 2022 +0000
Improved code [skip ci]
src/ivfscan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ivfscan.c b/src/ivfscan.c
index b557feaf..cc3bdfda 100644
--- a/src/ivfscan.c
+++ b/src/ivfscan.c
@@ -21,7 +21,7 @@
static int
CompareLists(const pairingheap_node *a, const pairingheap_node *b, void *arg)
{
- double diff = (((IvfflatScanList *) a)->distance - ((IvfflatScanList *) b)->distance);
+ double diff = ((const IvfflatScanList *) a)->distance - ((const IvfflatScanList *) b)->distance;
if (diff > 0)
return 1;
[parent: 7bba0e2a0199]