shithub: freetype+ttf2subf

Download patch

ref: 0fe9763135c1c3ee489bd5106f5c8dbc5967886b
parent: b602eba4a1b25656a6da9aa7f75b44381cecea04
author: Werner Lemberg <[email protected]>
date: Fri Jun 22 13:08:26 EDT 2001

Add cast in pcfread.c.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,7 @@
-2001-06-22  David Turner <[email protected]>
+2001-06-22  David Turner  <[email protected]>
 
-    * 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  <[email protected]>
 
@@ -16,6 +15,8 @@
 	* include/freetype/freetype.h (FT_ENC_TAG): New version to make it
 	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  <[email protected]>
 
--- a/src/pcf/pcfread.c
+++ b/src/pcf/pcfread.c
@@ -717,7 +717,7 @@
       else
         encodingOffset = GET_ShortLE();
   
-      if ( encodingOffset != 0xFFFF )
+      if ( encodingOffset != (signed short)0xFFFF )
       {
         tmpEncoding[j].enc = ( ( ( i / ( lastCol - firstCol + 1 ) ) +
                                  firstRow ) * 256 ) +