* src/base/ftcalc.c (FT_MulDiv): Fixed serious typo.

This commit is contained in:
Werner Lemberg 2001-08-18 05:09:42 +00:00
parent 159d431faa
commit f2cc4a235e
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2001-08-17 Martin Muskens <mmuskens@aurelon.com>
* src/base/ftcalc.c (FT_MulDiv): Fixed serious typo.
2001-08-12 Werner Lemberg <wl@gnu.org>
Updating to OpenType 1.3.

View File

@ -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;