avoid shadowing with build-in function

This commit is contained in:
rusefillc 2023-11-01 09:44:02 -04:00
parent 53613ddde6
commit 12889f8530
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ static char *ch_ltoa(char *p, long num, unsigned radix) {
}
#if CHPRINTF_USE_FLOAT
static const long pow10[FLOAT_PRECISION] = {
static const long chPow10[FLOAT_PRECISION] = {
10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000
};
@ -98,7 +98,7 @@ static char *ftoa(char *p, float num, unsigned long precision) {
if ((precision == 0) || (precision > FLOAT_PRECISION)) {
precision = FLOAT_PRECISION;
}
precision = pow10[precision - 1];
precision = chPow10[precision - 1];
l = (long)num;
p = long_to_string_with_divisor(p, l, 10, 0);