[psaux] Fix tracing of negative numbers.

Due to incorrect casting negative numbers were shown as very large
(positive) integers on 64bit systems.

* src/psaux/t1decode.c (t1_decoder_parse_charstrings) <op_none>:
Use division instead of shift.
This commit is contained in:
Werner Lemberg 2015-10-19 23:00:28 +02:00
parent 5179c89f61
commit 24cee3a8a3
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,13 @@
2015-10-18 Werner Lemberg <wl@gnu.org>
[psaux] Fix tracing of negative numbers.
Due to incorrect casting negative numbers were shown as very large
(positive) integers on 64bit systems.
* src/psaux/t1decode.c (t1_decoder_parse_charstrings) <op_none>:
Use division instead of shift.
2015-10-18 Werner Lemberg <wl@gnu.org>
[truetype] Improve TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES (#46223).

View File

@ -669,7 +669,7 @@
if ( large_int )
FT_TRACE4(( " %ld", value ));
else
FT_TRACE4(( " %ld", Fix2Int( value ) ));
FT_TRACE4(( " %ld", value / 65536 ));
#endif
*top++ = value;