avoid shadowing with build-in function
This commit is contained in:
parent
53613ddde6
commit
12889f8530
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue