Commit 94be20ea8243b5118b0f0720aa09dce33aa51ed6

Werner Lemberg 2007-05-09T20:02:55

* src/truetype/ttinterp.c (Ins_IP), src/autofit/aflatin.c (af_latin_metrics_scale_dim): Fix compiler warnings.

diff --git a/ChangeLog b/ChangeLog
index 907d7c3..8542cbb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-09  Graham Asher  <graham.asher@btinternet.com>
+
+	* src/truetype/ttinterp.c (Ins_IP), src/autofit/aflatin.c
+	(af_latin_metrics_scale_dim): Fix compiler warnings.
+
 2007-05-06  Werner Lemberg  <wl@gnu.org>
 
 	* builds/win32/visualce/freetype.sln: Removed, as requested by
diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index 4cec6cb..c03211f 100644
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -527,7 +527,8 @@
 
     /* an extra-light axis corresponds to a standard width that is */
     /* smaller than 0.75 pixels                                    */
-    axis->extra_light = FT_MulFix( axis->standard_width, scale ) < 32 + 8;
+    axis->extra_light =
+      (FT_Bool)( FT_MulFix( axis->standard_width, scale ) < 32 + 8 );
 
     if ( dim == AF_DIMENSION_VERT )
     {
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c
index 7a45cc5..9cd7085 100644
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -6213,7 +6213,7 @@
                    ? TT_MULDIV( org_dist, cur_range, old_range )
                    : cur_dist;
 
-      CUR_Func_move( &CUR.zp2, point, new_dist - cur_dist );
+      CUR_Func_move( &CUR.zp2, (FT_UShort)point, new_dist - cur_dist );
     }
     CUR.GS.loop = 1;
     CUR.new_top = CUR.args;