summaryrefslogtreecommitdiffstatshomepage
path: root/py/objgenerator.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objgenerator.c')
-rw-r--r--py/objgenerator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objgenerator.c b/py/objgenerator.c
index 7eaeac9cce..741ffc8a84 100644
--- a/py/objgenerator.c
+++ b/py/objgenerator.c
@@ -59,12 +59,12 @@ STATIC mp_obj_t gen_wrap_call(mp_obj_t self_in, uint n_args, uint n_kw, const mp
const byte *bytecode = self_fun->bytecode;
// get code info size, and skip the line number table
- machine_uint_t code_info_size = bytecode[0] | (bytecode[1] << 8) | (bytecode[2] << 16) | (bytecode[3] << 24);
+ mp_uint_t code_info_size = bytecode[0] | (bytecode[1] << 8) | (bytecode[2] << 16) | (bytecode[3] << 24);
bytecode += code_info_size;
// bytecode prelude: get state size and exception stack size
- machine_uint_t n_state = bytecode[0] | (bytecode[1] << 8);
- machine_uint_t n_exc_stack = bytecode[2] | (bytecode[3] << 8);
+ mp_uint_t n_state = bytecode[0] | (bytecode[1] << 8);
+ mp_uint_t n_exc_stack = bytecode[2] | (bytecode[3] << 8);
bytecode += 4;
// allocate the generator object, with room for local stack and exception stack