aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorUladzimir Pylinski <barthess@yandex.ru>2015-02-02 11:21:39 +0000
committerUladzimir Pylinski <barthess@yandex.ru>2015-02-02 11:21:39 +0000
commit2f5f47e43b45c6af839b0177f441d3a8081ebbc6 (patch)
tree210c99aaab438dcd89010dcf01edeff07f8c566a /os
parent64dcbd445af00985539084e719de928a95478f72 (diff)
downloadChibiOS-2f5f47e43b45c6af839b0177f441d3a8081ebbc6.tar.gz
ChibiOS-2f5f47e43b45c6af839b0177f441d3a8081ebbc6.tar.bz2
ChibiOS-2f5f47e43b45c6af839b0177f441d3a8081ebbc6.zip
[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
Diffstat (limited to 'os')
-rw-r--r--os/various/chprintf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/os/various/chprintf.c b/os/various/chprintf.c
index 50124d438..e44bd9d5b 100644
--- a/os/various/chprintf.c
+++ b/os/various/chprintf.c
@@ -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;