py/showbc: Make sure to set the const_table before printing bytecode.

This commit is contained in:
Damien George
2017-01-27 12:34:09 +11:00
parent 4614403f63
commit cc4c1adf6e
3 changed files with 6 additions and 7 deletions

View File

@@ -38,8 +38,7 @@
#include "py/bc.h"
#if 0
//#define TRACE(ip) printf("sp=" INT_FMT " ", sp - code_state->sp); mp_bytecode_print2(ip, 1);
#define TRACE(ip) printf("sp=%d ", sp - code_state->sp); mp_bytecode_print2(ip, 1);
#define TRACE(ip) printf("sp=%d ", (int)(sp - code_state->sp)); mp_bytecode_print2(ip, 1, code_state->const_table);
#else
#define TRACE(ip)
#endif