diff options
author | Damien George <damien.p.george@gmail.com> | 2016-05-20 12:38:15 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-05-20 12:46:20 +0100 |
commit | 3ff16ff52e45d4c0bf1df5fa650b72d6d835451b (patch) | |
tree | ee959477b44d30e320271d4af728b10bafe3687f /py/objdict.c | |
parent | a0a08b4be1583aa7a4ef33d3b1b0aa6553732eca (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/objdict.c')
-rw-r--r-- | py/objdict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objdict.c b/py/objdict.c index cc1f502d0..04da2bf62 100644 --- a/py/objdict.c +++ b/py/objdict.c @@ -414,7 +414,7 @@ typedef enum _mp_dict_view_kind_t { MP_DICT_VIEW_VALUES, } mp_dict_view_kind_t; -STATIC char *mp_dict_view_names[] = {"dict_items", "dict_keys", "dict_values"}; +STATIC const char *const mp_dict_view_names[] = {"dict_items", "dict_keys", "dict_values"}; typedef struct _mp_obj_dict_view_it_t { mp_obj_base_t base; |