diff options
| author | Damien <damien.p.george@gmail.com> | 2013-12-29 22:32:51 +0000 | 
|---|---|---|
| committer | Damien <damien.p.george@gmail.com> | 2013-12-29 22:32:51 +0000 | 
| commit | dae7eb7226a46856621023a9488f177d451e2c3e (patch) | |
| tree | f4ad72373a82ca86ad12459333ca299edc0ab8a7 /py/showbc.c | |
| parent | 732407f1bf12364375162e8fb73816532a5d139c (diff) | |
py: add dict length function, and fix rt_store_set.
Diffstat (limited to 'py/showbc.c')
| -rw-r--r-- | py/showbc.c | 10 | 
1 files changed, 3 insertions, 7 deletions
| diff --git a/py/showbc.c b/py/showbc.c index 20a9790f9..480dc1c8c 100644 --- a/py/showbc.c +++ b/py/showbc.c @@ -279,21 +279,17 @@ void mp_show_byte_code(const byte *ip, int len) {                  rt_store_map(sp[unum + 1], sp[0], sp[1]);                  sp += 2;                  break; +                */              case MP_BC_BUILD_SET:                  DECODE_UINT; -                obj1 = rt_build_set(unum, sp); -                sp += unum - 1; -                *sp = obj1; +                printf("BUILD_SET %lu", unum);                  break;              case MP_BC_SET_ADD:                  DECODE_UINT; -                // I think it's guaranteed by the compiler that sp[unum] is a set -                rt_store_set(sp[unum], sp[0]); -                sp++; +                printf("SET_ADD %lu", unum);                  break; -                */              case MP_BC_UNPACK_SEQUENCE:                  DECODE_UINT; | 
