mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-10 22:56:55 +08:00
Improved code [skip ci]
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
static int
|
static int
|
||||||
CompareLists(const pairingheap_node *a, const pairingheap_node *b, void *arg)
|
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)
|
if (diff > 0)
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user