From 2f5f47e43b45c6af839b0177f441d3a8081ebbc6 Mon Sep 17 00:00:00 2001 From: Uladzimir Pylinski Date: Mon, 2 Feb 2015 11:21:39 +0000 Subject: [PATCH] [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 --- os/various/chprintf.c | 5 +++-- 1 file 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;