mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 12:17:14 +03:00
Renamed function
This commit is contained in:
parent
6764650e2a
commit
a69430047b
|
@ -759,7 +759,7 @@ typedef struct {
|
||||||
} DistanceWithIndex;
|
} DistanceWithIndex;
|
||||||
|
|
||||||
static int
|
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 *A = (DistanceWithIndex *)a;
|
||||||
DistanceWithIndex *B = (DistanceWithIndex *)b;
|
DistanceWithIndex *B = (DistanceWithIndex *)b;
|
||||||
if (*A->distance == *B->distance) {
|
if (*A->distance == *B->distance) {
|
||||||
|
@ -829,7 +829,7 @@ build_distance_tables(
|
||||||
dwi,
|
dwi,
|
||||||
nEntries,
|
nEntries,
|
||||||
sizeof(DistanceWithIndex),
|
sizeof(DistanceWithIndex),
|
||||||
_sort_ulong_ptr_keys);
|
_distance_index_cmp);
|
||||||
for (j = 0; j < nEntries; j++) {
|
for (j = 0; j < nEntries; j++) {
|
||||||
avgDistSortKey[i * nEntries + j] = dwi[j].distance;
|
avgDistSortKey[i * nEntries + j] = dwi[j].distance;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user