* 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.
diff --git a/ChangeLog b/ChangeLog
index 75380b8..2e87d72 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2001-07-03 Werner Lemberg <wl@gnu.org>
+
+ * 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 <wl@gnu.org>
* 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 51b9fea..12f43fd 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 77b6995..ad39013 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 0315c05..ac9057d 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 4d269a0..7faab53 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;