Improved code [skip ci]

This commit is contained in:
Andrew Kane
2022-02-14 19:38:59 -08:00
parent 7bba0e2a01
commit ac65ec2856

View File

@@ -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;