diff options
Diffstat (limited to 'argp-standalone/vsnprintf.c')
-rw-r--r-- | argp-standalone/vsnprintf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/argp-standalone/vsnprintf.c b/argp-standalone/vsnprintf.c index e9b5f192b3c..33c9a5d0042 100644 --- a/argp-standalone/vsnprintf.c +++ b/argp-standalone/vsnprintf.c @@ -551,7 +551,7 @@ static LDOUBLE abs_val (LDOUBLE value) return result; } -static LDOUBLE pow10 (int exp) +static LDOUBLE pow10_argp (int exp) { LDOUBLE result = 1; @@ -564,7 +564,7 @@ static LDOUBLE pow10 (int exp) return result; } -static long round (LDOUBLE value) +static long round_argp (LDOUBLE value) { long intpart; @@ -626,12 +626,12 @@ static int fmtfp (char *buffer, size_t *currlen, size_t maxlen, /* We "cheat" by converting the fractional part to integer by * multiplying by a factor of 10 */ - fracpart = round ((pow10 (max)) * (ufvalue - intpart)); + fracpart = round_argp ((pow10_argp (max)) * (ufvalue - intpart)); - if (fracpart >= pow10 (max)) + if (fracpart >= pow10_argp (max)) { intpart++; - fracpart -= pow10 (max); + fracpart -= pow10_argp (max); } #ifdef DEBUG_SNPRINTF |