Commit 5c4a23a4e97f2deff9afc198f487d857eba7c299

Werner Lemberg 2013-08-25T19:29:07

[autofit] Typo. * src/autofit/afblue.hin, src/autofit/afblue.c (GET_UTF8_CHAR): Use cast.

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;                         \