* src/cff/cffparse.c (cff_parse_real): Handle more than nine

significant digits correctly.  This fixes Savannah bug #24953.
This commit is contained in:
Werner Lemberg 2008-11-27 21:55:20 +00:00
parent 0a263a8b31
commit c7597edb6a
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-11-27 Werner Lemberg <wl@gnu.org>
* src/cff/cffparse.c (cff_parse_real): Handle more than nine
significant digits correctly. This fixes Savannah bug #24953.
2008-11-25 Daniel Zimmermann <netzimme@aol.com>
* src/base/ftstream.c (FT_Stream_ReadFields): Don't access stream

View File

@ -355,6 +355,12 @@
if ( FT_ABS( integer_length ) > 5 )
goto Exit;
/* Remove non-significant digits. */
if ( integer_length < 0 ) {
number /= power_tens[-integer_length];
fraction_length += integer_length;
}
/* Convert into 16.16 format. */
if ( fraction_length > 0 )
{