ref: 3b56c4d39068ba038b021fc57b57522f879e2721
parent: 9fc4094375d0bc2d06167b7306fafad28eba7909
author: suzuki toshiya <[email protected]>
date: Fri Jul 31 20:32:15 EDT 2009
truetype: Cast the project vector to 32-bit for LP64 system.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2009-07-31 suzuki toshiya <[email protected]>
+ truetype: Cast the project vector to 32-bit for LP64 system.
+
+ * src/truetype/ttinterp.c (Project, DualProject):
+ Insert casts from FT_Pos (the arguments `dx', `dy')
+ to FT_UInt32 (the argument to TT_DotFix14()).
+
+2009-07-31 suzuki toshiya <[email protected]>
+
truetype: Cast the scaling params to 32-bit for LP64 system.
* src/truetype/ttgload.c (TT_Process_Composite_Component):
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -2194,7 +2194,7 @@
FT_ASSERT( !CUR.face->unpatented_hinting );
#endif
- return TT_DotFix14( dx, dy,
+ return TT_DotFix14( (FT_UInt32)dx, (FT_UInt32)dy,
CUR.GS.projVector.x,
CUR.GS.projVector.y );
}
@@ -2220,7 +2220,7 @@
Dual_Project( EXEC_OP_ FT_Pos dx,
FT_Pos dy )
{
- return TT_DotFix14( dx, dy,
+ return TT_DotFix14( (FT_UInt32)dx, (FT_UInt32)dy,
CUR.GS.dualVector.x,
CUR.GS.dualVector.y );
}