mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
py: Declare constant data as properly constant.
Otherwise some compilers (eg without optimisation) will put this read-only data in RAM instead of ROM.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user