* src/truetype/ttinterp.c (Ins_IP), src/autofit/aflatin.c (af_latin_metrics_scale_dim): Fix compiler warnings.
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
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;