From 3ff16ff52e45d4c0bf1df5fa650b72d6d835451b Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 20 May 2016 12:38:15 +0100 Subject: py: Declare constant data as properly constant. Otherwise some compilers (eg without optimisation) will put this read-only data in RAM instead of ROM. --- py/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/map.c') diff --git a/py/map.c b/py/map.c index 445b20660..0916ec522 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 -- cgit v1.2.3