Add cast in pcfread.c.
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
diff --git a/ChangeLog b/ChangeLog
index bef069a..280a62f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,7 @@
-2001-06-22 David Turner <david@freetype.org>
+2001-06-22 David Turner <david@freetype.org>
- * docs/PATENTS: added patents disclaimer. This one was missing !!
-
- * docs/CHANGES, docs/todo: updated for the upcoming 2.0.4 release
+ * docs/PATENTS: Added patents disclaimer. This one was missing!
+ * docs/CHANGES, docs/todo: Updated for the upcoming 2.0.4 release.
2001-06-20 Werner Lemberg <wl@gnu.org>
@@ -17,6 +16,8 @@
easier to redefine.
* include/freetype/ftimage.h (FT_IMAGE_TAG): Ditto.
+ * src/pcf/pcfread.c (pcf_get_encodings): Add cast.
+
2001-06-19 David Turner <david@freetype.org>
* builds/win32/visualc/freetype.dsp, builds/win32/visualc/index.html:
diff --git a/src/pcf/pcfread.c b/src/pcf/pcfread.c
index 5f8269d..06ecfab 100644
--- a/src/pcf/pcfread.c
+++ b/src/pcf/pcfread.c
@@ -717,7 +717,7 @@ THE SOFTWARE.
else
encodingOffset = GET_ShortLE();
- if ( encodingOffset != 0xFFFF )
+ if ( encodingOffset != (signed short)0xFFFF )
{
tmpEncoding[j].enc = ( ( ( i / ( lastCol - firstCol + 1 ) ) +
firstRow ) * 256 ) +