* src/base/ftcalc.c (FT_MulDiv, FT_DivFix, FT_Sqrt64): Remove
compiler warnings.
This commit is contained in:
parent
7986070714
commit
1b3a0014e2
@ -1,3 +1,8 @@
|
||||
2001-06-11 Mike Owens <MOwens@amtdatasouth.com>
|
||||
|
||||
* src/base/ftcalc.c (FT_MulDiv, FT_DivFix, FT_Sqrt64): Remove
|
||||
compiler warnings.
|
||||
|
||||
2001-06-08 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* builds/unix/configure.in: Renamed to ...
|
||||
|
@ -147,7 +147,7 @@
|
||||
if ( b < 0 ) { b = -b; s = -s; }
|
||||
if ( c < 0 ) { c = -c; s = -s; }
|
||||
|
||||
d = ( c > 0 ? ( (FT_Int64)a * b + ( c >> 1 ) ) / c
|
||||
d = (FT_Long)( c > 0 ? ( (FT_Int64)a * b + ( c >> 1 ) ) / c
|
||||
: 0x7FFFFFFFL );
|
||||
|
||||
return ( s > 0 ) ? d : -d;
|
||||
@ -188,7 +188,7 @@
|
||||
q = 0x7FFFFFFFL;
|
||||
else
|
||||
/* compute result directly */
|
||||
q = ( ((FT_Int64)a << 16) + (b >> 1)) / b;
|
||||
q = (FT_UInt32)( ( ( (FT_Int64)a << 16 ) + ( b >> 1 ) ) / b );
|
||||
|
||||
return ( s < 0 ? -(FT_Long)q : (FT_Long)q );
|
||||
}
|
||||
@ -232,7 +232,7 @@
|
||||
|
||||
} while ( r > s || r * r > l );
|
||||
|
||||
return r;
|
||||
return (FT_Int32)r;
|
||||
}
|
||||
|
||||
#endif /* FT_CONFIG_OPTION_OLD_CALCS */
|
||||
|
Loading…
Reference in New Issue
Block a user