ref: e6d4518f80c29b4b594897c84c6a46c1d3469364
parent: 3780273e3e000a728adc97d0a35642347037ca1b
author: David Turner <[email protected]>
date: Fri Apr 27 05:49:27 EDT 2001
* src/base/ftbbox.c (BBox_Cubic_Check): fixed the coefficient normalization algorithm (invalid final bit position, and invalid shift computation..)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-04-27 David Turner <[email protected]>
+
+ * src/base/ftbbox.c (BBox_Cubic_Check): fixed the coefficient
+ normalization algorithm (invalid final bit position, and invalid
+ shift computation..)
+
2001-04-26 Werner Lemberg <[email protected]>
* builds/unix/config.guess, builds/unix/config.sub: Updated to
--- a/src/base/ftbbox.c
+++ b/src/base/ftbbox.c
@@ -382,25 +382,25 @@
if ( t1 == 0 ) /* all coefficients are 0! */
return;
- if ( t1 > 0xFFFFFFL )
+ if ( t1 > 0x7FFFFFL )
{
do
{
- shift--;
+ shift++;
t1 >>= 1;
- } while ( t1 > 0xFFFFFFL );
+ } while ( t1 > 0x7FFFFFL );
a >>= shift;
b >>= shift;
c >>= shift;
}
- else if ( t1 < 0x800000L )
+ else if ( t1 < 0x400000L )
{
do
{
shift++;
t1 <<= 1;
- } while ( t1 < 0x800000L );
+ } while ( t1 < 0x400000L );
a <<= shift;
b <<= shift;