summaryrefslogtreecommitdiff
path: root/py/repl.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-05-20 12:38:15 +0100
committerDamien George <damien.p.george@gmail.com>2016-05-20 12:46:20 +0100
commit3ff16ff52e45d4c0bf1df5fa650b72d6d835451b (patch)
treeee959477b44d30e320271d4af728b10bafe3687f /py/repl.c
parenta0a08b4be1583aa7a4ef33d3b1b0aa6553732eca (diff)
py: Declare constant data as properly constant.
Otherwise some compilers (eg without optimisation) will put this read-only data in RAM instead of ROM.
Diffstat (limited to 'py/repl.c')
-rw-r--r--py/repl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/repl.c b/py/repl.c
index 4006bbfb6..997d80005 100644
--- a/py/repl.c
+++ b/py/repl.c
@@ -223,7 +223,7 @@ mp_uint_t mp_repl_autocomplete(const char *str, mp_uint_t len, const mp_print_t
// If there're no better alternatives, and if it's first word
// in the line, try to complete "import".
if (s_start == org_str) {
- static char import_str[] = "import ";
+ static const char import_str[] = "import ";
if (memcmp(s_start, import_str, s_len) == 0) {
*compl_str = import_str + s_len;
return sizeof(import_str) - 1 - s_len;