truetype: Cast the project vector to 32-bit for LP64 system.

This commit is contained in:
suzuki toshiya 2009-08-01 00:32:15 +09:00
parent 9fc4094375
commit 3b56c4d390
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
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 <mpsuzuki@hiroshima-u.ac.jp>
truetype: Cast the scaling params to 32-bit for LP64 system.

View File

@ -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 );
}