[VARC] Convert a division to mult

This commit is contained in:
Behdad Esfahbod committed 2026-02-06 13:12:57 -07:00
1 parent d6039e579b
commit 5f2df0a3b2
1 file changed
+1 -1
+1 -1
View File
@@ -297,7 +297,7 @@ VarComponent::get_path_at (const hb_varc_context_t &c,
// Divide them by their divisors
#define PROCESS_TRANSFORM_COMPONENT(shift, type, flag, name) \
if (shift && (flags & (unsigned) flags_t::flag)) \
transform.name /= (1 << shift);
transform.name *= 1.f / (1 << shift);
PROCESS_TRANSFORM_COMPONENTS;
#undef PROCESS_TRANSFORM_COMPONENT