From 15eba74ffe85d13ecafd032fe44bbabe26670f8c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 4 Aug 2017 17:01:56 +0100 Subject: [PATCH] Use multiplication instead of division --- src/fcfreetype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fcfreetype.c b/src/fcfreetype.c index 2f99928..1646dc7 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -2102,7 +2102,7 @@ FcFreeTypeCheckGlyph (FT_Face face, return FcTrue; } -#define APPROXIMATELY_EQUAL(x,y) (FC_ABS ((x) - (y)) <= FC_MAX (FC_ABS (x), FC_ABS (y)) / 33) +#define APPROXIMATELY_EQUAL(x,y) (FC_ABS ((x) - (y)) * 33 <= FC_MAX (FC_ABS (x), FC_ABS (y))) FcCharSet * FcFreeTypeCharSetAndSpacing (FT_Face face, FcBlanks *blanks FC_UNUSED, int *spacing)