shithub: freetype+ttf2subf

Download patch

ref: 37b5c92f83e5da53707b20c10ef8e0d7a24924d9
parent: 9e0c667413196addac49ed4b42a9ac1639a2cc16
author: Werner Lemberg <[email protected]>
date: Tue Mar 20 03:23:12 EDT 2012

[bdf] Improvement to Savannah bug #35656.

* src/bdf/bdflib.c (isdigok): Add cast, as suggested in report.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-03-20  Werner Lemberg  <[email protected]>
+
+	[bdf] Improvement to Savannah bug #35656.
+
+	* src/bdf/bdflib.c (isdigok): Add cast, as suggested in report.
+
 2012-03-17  Chris Liddell  <[email protected]>
 
 	[type1] Fix Savannah bug #35847.
--- a/src/bdf/bdflib.c
+++ b/src/bdf/bdflib.c
@@ -842,7 +842,7 @@
   };
 
 
-#define isdigok( m, d )  (m[(d) >> 3] & ( 1 << ( (d) & 7 ) ) )
+#define isdigok( m, d )  (m[(unsigned char)(d) >> 3] & ( 1 << ( (d) & 7 ) ) )
 
 
   /* Routine to convert an ASCII string into an unsigned long integer. */