@@ -63,8 +63,8 @@ typedef enum {
6363 do { \
6464 unum = (unum << 7) + (*ip & 0x7f); \
6565 } while ((*ip++ & 0x80) != 0)
66- #define DECODE_ULABEL mp_uint_t ulab = (ip[0] | (ip[1] << 8)); ip += 2
67- #define DECODE_SLABEL mp_uint_t slab = (ip[0] | (ip[1] << 8)) - 0x8000; ip += 2
66+ #define DECODE_ULABEL size_t ulab = (ip[0] | (ip[1] << 8)); ip += 2
67+ #define DECODE_SLABEL size_t slab = (ip[0] | (ip[1] << 8)) - 0x8000; ip += 2
6868
6969#if MICROPY_PERSISTENT_CODE
7070
@@ -863,7 +863,7 @@ unwind_jump:;
863863
864864 ENTRY (MP_BC_MAKE_CLOSURE ): {
865865 DECODE_PTR ;
866- mp_uint_t n_closed_over = * ip ++ ;
866+ size_t n_closed_over = * ip ++ ;
867867 // Stack layout: closed_overs <- TOS
868868 sp -= n_closed_over - 1 ;
869869 SET_TOP (mp_make_closure_from_raw_code (ptr , n_closed_over , sp ));
@@ -872,7 +872,7 @@ unwind_jump:;
872872
873873 ENTRY (MP_BC_MAKE_CLOSURE_DEFARGS ): {
874874 DECODE_PTR ;
875- mp_uint_t n_closed_over = * ip ++ ;
875+ size_t n_closed_over = * ip ++ ;
876876 // Stack layout: def_tuple def_dict closed_overs <- TOS
877877 sp -= 2 + n_closed_over - 1 ;
878878 SET_TOP (mp_make_closure_from_raw_code (ptr , 0x100 | n_closed_over , sp ));
@@ -958,8 +958,8 @@ unwind_jump:;
958958 code_state -> sp = sp ;
959959 code_state -> exc_sp = MP_TAGPTR_MAKE (exc_sp , currently_in_except_block );
960960
961- mp_uint_t n_args = unum & 0xff ;
962- mp_uint_t n_kw = (unum >> 8 ) & 0xff ;
961+ size_t n_args = unum & 0xff ;
962+ size_t n_kw = (unum >> 8 ) & 0xff ;
963963 int adjust = (sp [1 ] == MP_OBJ_NULL ) ? 0 : 1 ;
964964
965965 mp_code_state_t * new_state = mp_obj_fun_bc_prepare_codestate (* sp , n_args + adjust , n_kw , sp + 2 - adjust );
@@ -1304,7 +1304,7 @@ unwind_jump:;
13041304 // TODO need a better way of not adding traceback to constant objects (right now, just GeneratorExit_obj and MemoryError_obj)
13051305 if (nlr .ret_val != & mp_const_GeneratorExit_obj && nlr .ret_val != & mp_const_MemoryError_obj ) {
13061306 const byte * ip = code_state -> code_info ;
1307- mp_uint_t code_info_size = mp_decode_uint (& ip );
1307+ size_t code_info_size = mp_decode_uint (& ip );
13081308 #if MICROPY_PERSISTENT_CODE
13091309 qstr block_name = ip [0 ] | (ip [1 ] << 8 );
13101310 qstr source_file = ip [2 ] | (ip [3 ] << 8 );
@@ -1317,7 +1317,7 @@ unwind_jump:;
13171317 size_t source_line = 1 ;
13181318 size_t c ;
13191319 while ((c = * ip )) {
1320- mp_uint_t b , l ;
1320+ size_t b , l ;
13211321 if ((c & 0x80 ) == 0 ) {
13221322 // 0b0LLBBBBB encoding
13231323 b = c & 0x1f ;
0 commit comments