diff options
author | Damien George <damien.p.george@gmail.com> | 2014-12-12 17:18:56 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-12-12 17:18:56 +0000 |
commit | 7764f163fa54dc39532f7729c774ab92611bb115 (patch) | |
tree | d74be7c2d1f9fbeb0cf56884035b8201061fda27 /py/showbc.c | |
parent | 1ca28bd570e1d4b905a281d276fb822df35833da (diff) |
py: Fix label printing in showbc; print sp in vm trace.
Diffstat (limited to 'py/showbc.c')
-rw-r--r-- | py/showbc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/py/showbc.c b/py/showbc.c index 93fe2c378..5ae05432a 100644 --- a/py/showbc.c +++ b/py/showbc.c @@ -299,22 +299,22 @@ void mp_bytecode_print2(const byte *ip, mp_uint_t len) { case MP_BC_POP_JUMP_IF_TRUE: DECODE_SLABEL; - printf("POP_JUMP_IF_TRUE " UINT_FMT, ip + unum - ip_start); + printf("POP_JUMP_IF_TRUE " INT_FMT, ip + unum - ip_start); break; case MP_BC_POP_JUMP_IF_FALSE: DECODE_SLABEL; - printf("POP_JUMP_IF_FALSE " UINT_FMT, ip + unum - ip_start); + printf("POP_JUMP_IF_FALSE " INT_FMT, ip + unum - ip_start); break; case MP_BC_JUMP_IF_TRUE_OR_POP: DECODE_SLABEL; - printf("JUMP_IF_TRUE_OR_POP " UINT_FMT, ip + unum - ip_start); + printf("JUMP_IF_TRUE_OR_POP " INT_FMT, ip + unum - ip_start); break; case MP_BC_JUMP_IF_FALSE_OR_POP: DECODE_SLABEL; - printf("JUMP_IF_FALSE_OR_POP " UINT_FMT, ip + unum - ip_start); + printf("JUMP_IF_FALSE_OR_POP " INT_FMT, ip + unum - ip_start); break; case MP_BC_SETUP_WITH: |