diff --git a/src/hb-repacker.hh b/src/hb-repacker.hh index 0beb438db..68165d4ce 100644 --- a/src/hb-repacker.hh +++ b/src/hb-repacker.hh @@ -83,7 +83,7 @@ struct graph_t { if (!priority) return 0; int64_t table_size = obj.tail - obj.head; - return -(table_size - table_size / (1 << priority)); + return -(table_size - table_size / (1 << hb_min(priority, 16u))); } };