summaryrefslogtreecommitdiffstatshomepage
path: root/py/stackctrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/stackctrl.c')
-rw-r--r--py/stackctrl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/stackctrl.c b/py/stackctrl.c
index 724d54a1be..2ee5dd6472 100644
--- a/py/stackctrl.c
+++ b/py/stackctrl.c
@@ -40,7 +40,7 @@ void mp_stack_ctrl_init() {
stack_top = (char*)&stack_dummy;
}
-uint mp_stack_usage() {
+mp_uint_t mp_stack_usage() {
// Assumes descending stack
volatile int stack_dummy;
return stack_top - (char*)&stack_dummy;
@@ -48,9 +48,9 @@ uint mp_stack_usage() {
#if MICROPY_STACK_CHECK
-static uint stack_limit = 10240;
+static mp_uint_t stack_limit = 10240;
-void mp_stack_set_limit(uint limit) {
+void mp_stack_set_limit(mp_uint_t limit) {
stack_limit = limit;
}