shithub: freetype+ttf2subf

Download patch

ref: 564b4432ca580f12ffd83bc96a3dff3d0817c93a
parent: 8a8c6022bff205c7e98d6bef30ccc78f8f1fd8e0
author: Werner Lemberg <[email protected]>
date: Wed Apr 26 11:02:52 EDT 2006

* src/psaux/psobjs.c (shift_elements): Don't use FT_Long but
FT_PtrDiff for `delta'.  Reported by C�line PILLET
<[email protected]>.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-04-26  Werner Lemberg  <[email protected]>
+
+	* src/psaux/psobjs.c (shift_elements): Don't use FT_Long but
+	FT_PtrDiff for `delta'.  Reported by C�line PILLET
+	<[email protected]>.
+
 2006-04-21  David Turner  <[email protected]>
 
 	* include/freetype/ftincrem.h: Documentation updates.
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -88,9 +88,9 @@
   shift_elements( PS_Table  table,
                   FT_Byte*  old_base )
   {
-    FT_Long    delta  = (FT_Long)( table->block - old_base );
-    FT_Byte**  offset = table->elements;
-    FT_Byte**  limit  = offset + table->max_elems;
+    FT_PtrDist  delta  = table->block - old_base;
+    FT_Byte**   offset = table->elements;
+    FT_Byte**   limit  = offset + table->max_elems;
 
 
     for ( ; offset < limit; offset++ )