ref: 24cee3a8a3db419bc657860fc89cdfb1a0392f72
parent: 5179c89f61aa6b6de00aa01c2e8b7fb6cf3021d0
author: Werner Lemberg <[email protected]>
date: Mon Oct 19 19:00:28 EDT 2015
[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.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
2015-10-18 Werner Lemberg <[email protected]>
+ [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 <[email protected]>
+
[truetype] Improve TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES (#46223).
* devel/ftoption.h, include/freetype/config/ftoption.h: Surround it
--- a/src/psaux/t1decode.c
+++ b/src/psaux/t1decode.c
@@ -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;