From 6b19fd5c14883f36f5e7e177d9c1acd2fa7759c9 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Mon, 30 May 2011 07:27:59 +0200 Subject: [PATCH] Fix g++ 4.6 compilation. * src/autofit/afhints.c (af_glyph_hints_dump_segments, af_glyph_hints_dump_edges): Use cast. --- ChangeLog | 7 +++++++ src/autofit/afhints.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f9149be88..e2ade623f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-30 Werner Lemberg + + Fix g++ 4.6 compilation. + + * src/autofit/afhints.c (af_glyph_hints_dump_segments, + af_glyph_hints_dump_edges): Use cast. + 2011-05-30 Werner Lemberg Fix gcc 4.6 compiler warnings. diff --git a/src/autofit/afhints.c b/src/autofit/afhints.c index 05e1569d8..f51066f02 100644 --- a/src/autofit/afhints.c +++ b/src/autofit/afhints.c @@ -267,7 +267,7 @@ AF_INDEX_NUM( seg->serif, segments ), seg->height, seg->height - ( seg->max_coord - seg->min_coord ), - af_edge_flags_to_string( seg->flags ) ); + af_edge_flags_to_string( (AF_Edge_Flags)seg->flags ) ); } printf( "\n" ); } @@ -380,7 +380,7 @@ edge->blue_edge ? 'y' : 'n', edge->opos / 64.0, edge->pos / 64.0, - af_edge_flags_to_string( edge->flags ) ); + af_edge_flags_to_string( (AF_Edge_Flags)edge->flags ) ); } printf( "\n" ); }