* src/cff/cffparse.c (cff_parse_real): Handle more than nine
significant digits correctly. This fixes Savannah bug #24953.
This commit is contained in:
parent
0a263a8b31
commit
c7597edb6a
|
@ -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
|
||||
|
|
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue