* src/autofit/aflatin.c, src/cff/cffdriver.c, src/truetype/ttobjs.c, src/truetype/ttinterp.c: fixing 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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
diff --git a/ChangeLog b/ChangeLog
index 0c59975..cecf587 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-16 David Turner <david@freetype.org>
+
+ * src/autofit/aflatin.c, src/cff/cffdriver.c, src/truetype/ttobjs.c,
+ src/truetype/ttinterp.c: fixing compiler warnings
+
2007-01-15 Detlef Würkner <TetiSoft@apg.lahn.de>
* builds/amiga/makefile, builds/amiga/makefile.os4,
diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index 5b48afb..cb85e9d 100644
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -723,7 +723,7 @@
segment->min_coord = (FT_Short)min_pos;
segment->max_coord = (FT_Short)max_pos;
- segment->height = segment->max_coord - segment->min_coord;
+ segment->height = (FT_Short)(segment->max_coord - segment->min_coord);
on_edge = 0;
segment = NULL;
diff --git a/src/cff/cffdrivr.c b/src/cff/cffdrivr.c
index 7728cf7..921557c 100644
--- a/src/cff/cffdrivr.c
+++ b/src/cff/cffdrivr.c
@@ -337,8 +337,8 @@
cff->psnames );
font_info->italic_angle = dict->italic_angle;
font_info->is_fixed_pitch = dict->is_fixed_pitch;
- font_info->underline_position = dict->underline_position;
- font_info->underline_thickness = dict->underline_thickness;
+ font_info->underline_position = (FT_Short) dict->underline_position;
+ font_info->underline_thickness = (FT_Short) dict->underline_thickness;
cff->font_info = font_info;
}
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c
index c636406..9d751f9 100644
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -5417,7 +5417,7 @@
first_point = (FT_UShort)( CUR.pts.contours[contour - 1] + 1 -
CUR.pts.first_point );
- last_point = CUR.pts.contours[contour] - CUR.pts.first_point;
+ last_point = (FT_UShort)(CUR.pts.contours[contour] - CUR.pts.first_point);
/* XXX: this is probably wrong... at least it prevents memory */
/* corruption when zp2 is the twilight zone */
diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c
index dbd2bda..f4665d8 100644
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -292,7 +292,7 @@
}
}
- ttface->internal->ignore_unpatented_hinter = !unpatented_hinting;
+ ttface->internal->ignore_unpatented_hinter = FT_BOOL(!unpatented_hinting);
}
#endif /* TT_CONFIG_OPTION_UNPATENTED_HINTING &&