[autofit] Typo. * src/autofit/afblue.hin, src/autofit/afblue.c (GET_UTF8_CHAR): Use cast.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
diff --git a/ChangeLog b/ChangeLog
index b8bf2e4..80185f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2013-08-25 Werner Lemberg <wl@gnu.org>
+ [autofit] Typo.
+
+ * src/autofit/afblue.hin, src/autofit/afblue.c (GET_UTF8_CHAR): Use
+ cast.
+
+2013-08-25 Werner Lemberg <wl@gnu.org>
+
[autofit] Synchronize `cjk' with `latin' module (and vice versa).
* src/autofit/afcjk.c (af_cjk_metrics_init_widths): Add tracing
diff --git a/src/autofit/afblue.h b/src/autofit/afblue.h
index 0699ae4..3bb505c 100644
--- a/src/autofit/afblue.h
+++ b/src/autofit/afblue.h
@@ -29,7 +29,7 @@ FT_BEGIN_HEADER
/* 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; \
diff --git a/src/autofit/afblue.hin b/src/autofit/afblue.hin
index 071e7d9..424ca7e 100644
--- a/src/autofit/afblue.hin
+++ b/src/autofit/afblue.hin
@@ -26,7 +26,7 @@ FT_BEGIN_HEADER
/* 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; \