From 6870f4cf1ad4c264d16f4073c50e86c37b5fccc8 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 18 Aug 2001 05:09:42 +0000 Subject: [PATCH] * src/base/ftcalc.c (FT_MulDiv): Fixed serious typo. --- ChangeLog | 4 ++++ src/base/ftcalc.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0b495573c..81dd0971d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-08-17 Martin Muskens + + * src/base/ftcalc.c (FT_MulDiv): Fixed serious typo. + 2001-08-12 Werner Lemberg Updating to OpenType 1.3. diff --git a/src/base/ftcalc.c b/src/base/ftcalc.c index 54469ba66..247ee034c 100644 --- a/src/base/ftcalc.c +++ b/src/base/ftcalc.c @@ -174,7 +174,7 @@ if ( c < 0 ) { c = -c; s = -s; } d = (FT_Long)( c > 0 ? ( (FT_Int64)a * b + ( c >> 1 ) ) / c - : 0x7FFFFFFFL ); + : 0x7FFFFFFFL ); return ( s > 0 ) ? d : -d; } @@ -386,7 +386,7 @@ temp2.hi = 0; temp2.lo = (FT_UInt32)(c >> 1); FT_Add64( &temp, &temp2, &temp ); - a = ft_div64by32( temp.hi, temp.lo, b ); + a = ft_div64by32( temp.hi, temp.lo, c ); } else a = 0x7FFFFFFFL;