[repacker] fix to lookup size comparison.
diff --git a/src/hb-repacker.hh b/src/hb-repacker.hh index e62947d..ca62989 100644 --- a/src/hb-repacker.hh +++ b/src/hb-repacker.hh
@@ -57,7 +57,7 @@ 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;