mirror of
https://github.com/pgvector/pgvector.git
synced 2026-12-05 16:58:38 +00:00
Improved code [skip ci]
This commit is contained in:
1 parent
7bba0e2a01
commit
ac65ec2856
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user