summaryrefslogtreecommitdiffstatshomepage
path: root/py/map.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/map.c
parenta0a08b4be1583aa7a4ef33d3b1b0aa6553732eca (diff)
downloadmicropython-3ff16ff52e45d4c0bf1df5fa650b72d6d835451b.tar.gz
micropython-3ff16ff52e45d4c0bf1df5fa650b72d6d835451b.zip
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/map.c')
-rw-r--r--py/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/map.c b/py/map.c
index 445b206603..0916ec522d 100644
--- a/py/map.c
+++ b/py/map.c
@@ -49,7 +49,7 @@ const mp_map_t mp_const_empty_map = {
// The first set of sizes are chosen so the allocation fits exactly in a
// 4-word GC block, and it's not so important for these small values to be
// prime. The latter sizes are prime and increase at an increasing rate.
-STATIC uint16_t hash_allocation_sizes[] = {
+STATIC const uint16_t hash_allocation_sizes[] = {
0, 2, 4, 6, 8, 10, 12, // +2
17, 23, 29, 37, 47, 59, 73, // *1.25
97, 127, 167, 223, 293, 389, 521, 691, 919, 1223, 1627, 2161, // *1.33