Commit 0fe9763135c1c3ee489bd5106f5c8dbc5967886b

Werner Lemberg 2001-06-22T17:08:26

Add cast in pcfread.c.

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 ) +