fix compiler warning; pow10 is also in math.h

This commit is contained in:
Nils Larsch 2005-05-05 20:57:37 +00:00
parent 831721ef49
commit 2c288b2a7e

View File

@ -576,7 +576,7 @@ abs_val(LDOUBLE value)
}
static LDOUBLE
pow10(int in_exp)
pow_10(int in_exp)
{
LDOUBLE result = 1;
while (in_exp) {
@ -640,8 +640,8 @@ fmtfp(
/* we "cheat" by converting the fractional part to integer by
multiplying by a factor of 10 */
max10 = roundv(pow10(max));
fracpart = roundv(pow10(max) * (ufvalue - intpart));
max10 = roundv(pow_10(max));
fracpart = roundv(pow_10(max) * (ufvalue - intpart));
if (fracpart >= max10) {
intpart++;