[chprintf] Added 'const' qualifier to 'pow10' array.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7652 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
64dcbd445a
commit
2f5f47e43b
|
@ -73,8 +73,9 @@ static char *ltoa(char *p, long num, unsigned radix) {
|
|||
}
|
||||
|
||||
#if CHPRINTF_USE_FLOAT
|
||||
static long pow10[FLOAT_PRECISION] = {10, 100, 1000, 10000, 100000, 1000000,
|
||||
10000000, 100000000, 1000000000};
|
||||
static const long pow10[FLOAT_PRECISION] = {
|
||||
10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000
|
||||
};
|
||||
|
||||
static char *ftoa(char *p, double num, unsigned long precision) {
|
||||
long l;
|
||||
|
|
Loading…
Reference in New Issue