summaryrefslogtreecommitdiff
path: root/py/vm.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-01-27 12:34:09 +1100
committerDamien George <damien.p.george@gmail.com>2017-01-27 12:34:09 +1100
commitcc4c1adf6e05dcda54393fe512e47463fc45414e (patch)
treeee2361f0698468cbbcc750825656afa119a53d0c /py/vm.c
parent4614403f63cad9f5eac09046a70e332b29584c9c (diff)
py/showbc: Make sure to set the const_table before printing bytecode.
Diffstat (limited to 'py/vm.c')
-rw-r--r--py/vm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/py/vm.c b/py/vm.c
index 363824e5f..f4cfa2cd6 100644
--- a/py/vm.c
+++ b/py/vm.c
@@ -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