Commit 2c288b2a authored by Nils Larsch's avatar Nils Larsch
Browse files

fix compiler warning; pow10 is also in math.h

parent 831721ef
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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++;