diff options
Diffstat (limited to 'py/showbc.c')
-rw-r--r-- | py/showbc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/showbc.c b/py/showbc.c index 4bee97650a..609048e8f6 100644 --- a/py/showbc.c +++ b/py/showbc.c @@ -68,7 +68,7 @@ void mp_byte_code_print(const byte *ip, int len) { break; case MP_BC_LOAD_CONST_SMALL_INT: { - int num = 0; + machine_int_t num = 0; if ((ip[0] & 0x40) != 0) { // Number is negative num--; @@ -76,7 +76,7 @@ void mp_byte_code_print(const byte *ip, int len) { do { num = (num << 7) | (*ip & 0x7f); } while ((*ip++ & 0x80) != 0); - printf("LOAD_CONST_SMALL_INT %d", num); + printf("LOAD_CONST_SMALL_INT " INT_FMT, num); break; } |