aboutsummaryrefslogtreecommitdiff
path: root/py/parse.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/parse.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/parse.c')
-rw-r--r--py/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/parse.c b/py/parse.c
index 0b60569d0..7da484c49 100644
--- a/py/parse.c
+++ b/py/parse.c
@@ -104,7 +104,7 @@ enum {
#undef one_or_more
#undef DEF_RULE
-STATIC const rule_t *rules[] = {
+STATIC const rule_t *const rules[] = {
#define DEF_RULE(rule, comp, kind, ...) &rule_##rule,
#include "py/grammar.h"
#undef DEF_RULE