Fix Savannah bug #38967.

* src/base/ftcalc.c (FT_DivFix) [FT_LONG64]: Fix cast.
2.6.5
Werner Lemberg 12 years ago
parent cbcf33d1d9
commit b112fa4190
  1. 6
      ChangeLog
  2. 2
      src/base/ftcalc.c

@ -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).

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

Loading…
Cancel
Save