summaryrefslogtreecommitdiff
path: root/src/util/snprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/snprintf.c')
-rw-r--r--src/util/snprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/snprintf.c b/src/util/snprintf.c
index 561dced0..61390c9c 100644
--- a/src/util/snprintf.c
+++ b/src/util/snprintf.c
@@ -586,7 +586,7 @@ static LDOUBLE pow10 (int exp)
return result;
}
-static long round (LDOUBLE value)
+static long myround (LDOUBLE value)
{
long intpart;
@@ -680,7 +680,7 @@ 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 = myround ((pow10 (max)) * (ufvalue - intpart));
if (fracpart >= pow10 (max))
{