[repacker] fix to lookup size comparison.

This commit is contained in:
Garret Rieger 2022-07-25 21:59:57 +00:00
parent 6627204c4d
commit 5f4adb9bf3
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ inline int compare_sizes (const void* a, const void* b)
double subtables_per_byte_b = (double) size_b->num_subtables / (double) size_b->size;
if (subtables_per_byte_a == subtables_per_byte_b) {
return size_b->lookup_index - size_b->lookup_index;
return size_b->lookup_index - size_a->lookup_index;
}
double cmp = subtables_per_byte_b - subtables_per_byte_a;