From 2c4fba9c91d31cacd7db3a684acee34276c8b5b5 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 10 Jun 2017 11:03:41 +0200 Subject: [PATCH] * src/base/ftcalc.c (FT_DivFix): Fix embarrassing typo. Bug introduced 2017-05-28. --- ChangeLog | 6 ++++++ src/base/ftcalc.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3c4662490..49ed49505 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2017-06-10 Werner Lemberg + + * src/base/ftcalc.c (FT_DivFix): Fix embarrassing typo. + + Bug introduced 2017-05-28. + 2017-06-09 Werner Lemberg [cff, truetype] Integer overflows. diff --git a/src/base/ftcalc.c b/src/base/ftcalc.c index 9e42d784d..cb10612d4 100644 --- a/src/base/ftcalc.c +++ b/src/base/ftcalc.c @@ -262,7 +262,7 @@ b = (FT_UInt64)b_; FT_MOVE_SIGN( a_, a, s ); - FT_MOVE_SIGN( b_, a, s ); + FT_MOVE_SIGN( b_, b, s ); q = b > 0 ? ( ( a << 16 ) + ( b >> 1 ) ) / b : 0x7FFFFFFFUL;