From ac65ec2856ec32973b7798d22f68367b84ef7cb8 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 14 Feb 2022 19:38:59 -0800 Subject: [PATCH] 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 b557fea..cc3bdfd 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;