* src/psaux/psobjs.c (shift_elements): Don't use FT_Long but FT_PtrDiff for `delta'. Reported by Céline PILLET <Celine.Pillet@Tagginfo.com>.
diff --git a/ChangeLog b/ChangeLog
index e37d177..c40f514 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-04-26 Werner Lemberg <wl@gnu.org>
+
+ * src/psaux/psobjs.c (shift_elements): Don't use FT_Long but
+ FT_PtrDiff for `delta'. Reported by Céline PILLET
+ <Celine.Pillet@Tagginfo.com>.
+
2006-04-21 David Turner <david@freetype.org>
* include/freetype/ftincrem.h: Documentation updates.
diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c
index 7e21755..2b2892f 100644
--- 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++ )