summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--py/runtime.c2
-rw-r--r--py/runtime.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/py/runtime.c b/py/runtime.c
index d367530cc..01fd92fcf 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -1546,7 +1546,7 @@ py_obj_t rt_iternext(py_obj_t o_in) {
}
}
-void *rt_fun_table[RT_F_NUMBER_OF] = {
+const void *const rt_fun_table[RT_F_NUMBER_OF] = {
rt_load_const_str,
rt_load_name,
rt_load_global,
diff --git a/py/runtime.h b/py/runtime.h
index e676f14c0..86d59f24e 100644
--- a/py/runtime.h
+++ b/py/runtime.h
@@ -76,7 +76,7 @@ typedef enum {
RT_F_NUMBER_OF,
} rt_fun_kind_t;
-extern void *rt_fun_table[RT_F_NUMBER_OF];
+extern const void *const rt_fun_table[RT_F_NUMBER_OF];
typedef machine_ptr_t py_obj_t; // must be of pointer size
typedef py_obj_t (*py_fun_0_t)();