py: Simplify bytecode prelude when encoding closed over variables.
This commit is contained in:
@@ -95,10 +95,8 @@ void mp_bytecode_print(const void *descr, mp_uint_t n_total_args, const byte *ip
|
||||
|
||||
// bytecode prelude: initialise closed over variables
|
||||
{
|
||||
uint n_local = *ip++;
|
||||
printf("(NUM_LOCAL %u)\n", n_local);
|
||||
for (; n_local > 0; n_local--) {
|
||||
uint local_num = *ip++;
|
||||
uint local_num;
|
||||
while ((local_num = *ip++) != 255) {
|
||||
printf("(INIT_CELL %u)\n", local_num);
|
||||
}
|
||||
len -= ip - mp_showbc_code_start;
|
||||
|
||||
Reference in New Issue
Block a user