From a69430047bc1f945677d73b1c888b5e25b052f86 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 2 Apr 2021 21:05:33 +1100 Subject: [PATCH] Renamed function --- src/libImaging/Quant.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libImaging/Quant.c b/src/libImaging/Quant.c index 72762232b..ea226bcf1 100644 --- a/src/libImaging/Quant.c +++ b/src/libImaging/Quant.c @@ -759,7 +759,7 @@ typedef struct { } DistanceWithIndex; static int -_sort_ulong_ptr_keys(const void *a, const void *b) { +_distance_index_cmp(const void *a, const void *b) { DistanceWithIndex *A = (DistanceWithIndex *)a; DistanceWithIndex *B = (DistanceWithIndex *)b; if (*A->distance == *B->distance) { @@ -829,7 +829,7 @@ build_distance_tables( dwi, nEntries, sizeof(DistanceWithIndex), - _sort_ulong_ptr_keys); + _distance_index_cmp); for (j = 0; j < nEntries; j++) { avgDistSortKey[i * nEntries + j] = dwi[j].distance; }