summaryrefslogtreecommitdiff
path: root/py/mpstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/mpstate.h')
-rw-r--r--py/mpstate.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/py/mpstate.h b/py/mpstate.h
index e9e38606e..c7604e03a 100644
--- a/py/mpstate.h
+++ b/py/mpstate.h
@@ -48,7 +48,7 @@ typedef struct _mp_state_mem_t {
#endif
byte *gc_alloc_table_start;
- mp_uint_t gc_alloc_table_byte_len;
+ size_t gc_alloc_table_byte_len;
#if MICROPY_ENABLE_FINALISER
byte *gc_finaliser_table_start;
#endif
@@ -56,8 +56,8 @@ typedef struct _mp_state_mem_t {
byte *gc_pool_end;
int gc_stack_overflow;
- mp_uint_t gc_stack[MICROPY_ALLOC_GC_STACK_SIZE];
- mp_uint_t *gc_sp;
+ size_t gc_stack[MICROPY_ALLOC_GC_STACK_SIZE];
+ size_t *gc_sp;
uint16_t gc_lock_depth;
// This variable controls auto garbage collection. If set to 0 then the
@@ -65,10 +65,10 @@ typedef struct _mp_state_mem_t {
// you can still allocate/free memory and also explicitly call gc_collect.
uint16_t gc_auto_collect_enabled;
- mp_uint_t gc_last_free_atb_index;
+ size_t gc_last_free_atb_index;
#if MICROPY_PY_GC_COLLECT_RETVAL
- mp_uint_t gc_collected;
+ size_t gc_collected;
#endif
} mp_state_mem_t;