Fix Savannah bug #38967.

* src/base/ftcalc.c (FT_DivFix) [FT_LONG64]: Fix cast.
This commit is contained in:
Werner Lemberg 2013-05-12 07:29:04 +02:00
parent cbcf33d1d9
commit b112fa4190
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2013-05-12 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #38967.
* src/base/ftcalc.c (FT_DivFix) [FT_LONG64]: Fix cast.
2013-05-12 Werner Lemberg <wl@gnu.org>
Introduce unsigned 64bit type (if available).

View File

@ -264,7 +264,7 @@
q = 0x7FFFFFFFL;
else
/* compute result directly */
q = (FT_UInt32)( ( ( (FT_ULong)a << 16 ) + ( b >> 1 ) ) / b );
q = (FT_UInt32)( ( ( (FT_UInt64)a << 16 ) + ( b >> 1 ) ) / b );
return ( s < 0 ? -(FT_Long)q : (FT_Long)q );
}