From a560a1e018623d8d0d4326a61a1e29c4ffe86e04 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Tue, 3 Jul 2001 12:45:24 +0000 Subject: [PATCH] * src/autohint/ahhint.c (ah_hinter_align_weak_points): Remove unused variable `edges'. (ah_hinter_load): Remove unused variables `old_width' and `new_width'. * src/cid/cidload.c (cid_decrypt): Use `U' for constant (again). * src/psaux/psobjs.c (T1_Decrypt): Ditto. * src/type1/t1parse.c (T1_Get_Private_Dict): Ditto. --- ChangeLog | 10 ++++++++++ src/autohint/ahhint.c | 6 ------ src/cid/cidload.c | 2 +- src/psaux/psobjs.c | 2 +- src/type1/t1parse.c | 2 +- 5 files changed, 13 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 75380b8a3..2e87d72fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2001-07-03 Werner Lemberg + + * src/autohint/ahhint.c (ah_hinter_align_weak_points): Remove + unused variable `edges'. + (ah_hinter_load): Remove unused variables `old_width' and + `new_width'. + * src/cid/cidload.c (cid_decrypt): Use `U' for constant (again). + * src/psaux/psobjs.c (T1_Decrypt): Ditto. + * src/type1/t1parse.c (T1_Get_Private_Dict): Ditto. + 2001-06-26 Werner Lemberg * src/cid/cidload.c, src/cid/cidload.h (cid_decrypt): Use FT_Offset diff --git a/src/autohint/ahhint.c b/src/autohint/ahhint.c index 51b9fea37..12f43fd08 100644 --- a/src/autohint/ahhint.c +++ b/src/autohint/ahhint.c @@ -696,7 +696,6 @@ { AH_Outline* outline = hinter->glyph; FT_Int dimension; - AH_Edge* edges; AH_Point* points; AH_Point* point_limit; AH_Point** contour_limit; @@ -708,7 +707,6 @@ /* PASS 1: Move segment points to edge positions */ - edges = outline->horz_edges; touch_flag = ah_flah_touch_y; contour_limit = outline->contours + outline->num_contours; @@ -1106,7 +1104,6 @@ /* we now need to hint the metrics according to the change in */ /* width/positioning that occured during the hinting process */ { - FT_Pos old_width, new_width; FT_Pos old_advance; FT_Pos old_lsb, new_lsb; AH_Edge* edge1 = outline->vert_edges; /* leftmost edge */ @@ -1114,9 +1111,6 @@ outline->num_vedges - 1; /* rightmost edge */ - old_width = edge2->opos - edge1->opos; - new_width = edge2->pos - edge1->pos; - old_advance = hinter->pp2.x; old_lsb = edge1->opos; new_lsb = edge1->pos; diff --git a/src/cid/cidload.c b/src/cid/cidload.c index 77b6995ae..ad3901391 100644 --- a/src/cid/cidload.c +++ b/src/cid/cidload.c @@ -71,7 +71,7 @@ plain = (FT_Byte)( *buffer ^ ( seed >> 8 ) ); - seed = (FT_UShort)( ( *buffer + seed ) * 52845 + 22719 ); + seed = (FT_UShort)( ( *buffer + seed ) * 52845U + 22719 ); *buffer++ = plain; length--; } diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c index 0315c05da..ac9057d14 100644 --- a/src/psaux/psobjs.c +++ b/src/psaux/psobjs.c @@ -1286,7 +1286,7 @@ plain = (FT_Byte)( *buffer ^ ( seed >> 8 ) ); - seed = (FT_UShort)( ( *buffer + seed ) * 52845 + 22719 ); + seed = (FT_UShort)( ( *buffer + seed ) * 52845U + 22719 ); *buffer++ = plain; length--; } diff --git a/src/type1/t1parse.c b/src/type1/t1parse.c index 4d269a060..7faab53e6 100644 --- a/src/type1/t1parse.c +++ b/src/type1/t1parse.c @@ -448,7 +448,7 @@ } /* we now decrypt the encoded binary private dictionary */ - psaux->t1_decrypt( parser->private_dict, parser->private_len, 55665 ); + psaux->t1_decrypt( parser->private_dict, parser->private_len, 55665U ); parser->root.base = parser->private_dict; parser->root.cursor = parser->private_dict; parser->root.limit = parser->root.cursor + parser->private_len;