[chprintf] Added 'const' qualifier to 'pow10' array.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7652 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Uladzimir Pylinski 2015-02-02 11:21:39 +00:00
parent 64dcbd445a
commit 2f5f47e43b
1 changed files with 3 additions and 2 deletions

View File

@ -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;