Fix Savannah bug #38967.
* src/base/ftcalc.c (FT_DivFix) [FT_LONG64]: Fix cast.
This commit is contained in:
parent
cbcf33d1d9
commit
b112fa4190
|
@ -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…
Reference in New Issue