slice: Allow building with MICROPY_ENABLE_SLICE=0.

This commit is contained in:
Paul Sokolovsky
2014-01-04 01:34:23 +02:00
parent 26534cec85
commit e606cb6561
2 changed files with 4 additions and 0 deletions

View File

@@ -410,6 +410,7 @@ bool mp_execute_byte_code_2(const byte **ip_in_out, mp_obj_t *fastn, mp_obj_t **
sp++;
break;
#if MICROPY_ENABLE_SLICE
case MP_BC_BUILD_SLICE:
DECODE_UINT;
if (unum == 2) {
@@ -421,6 +422,7 @@ bool mp_execute_byte_code_2(const byte **ip_in_out, mp_obj_t *fastn, mp_obj_t **
assert(0);
}
break;
#endif
case MP_BC_UNPACK_SEQUENCE:
DECODE_UINT;