Commit 2bd945c3 authored by Werner Lemberg's avatar Werner Lemberg
Browse files

* src/base/ftcalc.c (FT_MulDiv, FT_DivFix, FT_Sqrt64): Remove

compiler warnings.
parent 645f60b8
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 */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment