ref: 5c4a23a4e97f2deff9afc198f487d857eba7c299
parent: 306f8c5d89979e83c884ba7a902d9971111b772a
author: Werner Lemberg <[email protected]>
date: Sun Aug 25 15:29:07 EDT 2013
[autofit] Typo. * src/autofit/afblue.hin, src/autofit/afblue.c (GET_UTF8_CHAR): Use cast.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2013-08-25 Werner Lemberg <[email protected]>
+ [autofit] Typo.
+
+ * src/autofit/afblue.hin, src/autofit/afblue.c (GET_UTF8_CHAR): Use
+ cast.
+
+2013-08-25 Werner Lemberg <[email protected]>
+
[autofit] Synchronize `cjk' with `latin' module (and vice versa).
* src/autofit/afcjk.c (af_cjk_metrics_init_widths): Add tracing
--- a/src/autofit/afblue.h
+++ b/src/autofit/afblue.h
@@ -29,7 +29,7 @@
/* an auxiliary macro to decode a UTF-8 character -- since we only use */
/* hard-coded, self-converted data, no error checking is performed */
#define GET_UTF8_CHAR( ch, p ) \
- ch = *p++; \
+ ch = (unsigned char)*p++; \
if ( ch >= 0x80 ) \
{ \
FT_UInt len; \
--- a/src/autofit/afblue.hin
+++ b/src/autofit/afblue.hin
@@ -26,7 +26,7 @@
/* an auxiliary macro to decode a UTF-8 character -- since we only use */
/* hard-coded, self-converted data, no error checking is performed */
#define GET_UTF8_CHAR( ch, p ) \
- ch = *p++; \
+ ch = (unsigned char)*p++; \
if ( ch >= 0x80 ) \
{ \
FT_UInt len; \