Fix diagnostics in CircuitPython

This commit is contained in:
Jeff Epler 2021-04-03 12:07:12 -05:00
parent 9cd13000b7
commit 4666bbd4de
2 changed files with 2 additions and 2 deletions

View file

@ -233,7 +233,7 @@ mp_uint_t ndarray_print_edgeitems = NDARRAY_PRINT_EDGEITEMS;
//| """alternate constructor function for `ulab.ndarray`. Mirrors numpy.array""" //| """alternate constructor function for `ulab.ndarray`. Mirrors numpy.array"""
//| ... //| ...
#if MICROPY_VERSION_MAJOR == 1 && MICROPY_VERSION_MINOR == 11 #if defined(MICROPY_VERSION_MAJOR) && MICROPY_VERSION_MAJOR == 1 && MICROPY_VERSION_MINOR == 11
void mp_obj_slice_indices(mp_obj_t self_in, mp_int_t length, mp_bound_slice_t *result) { void mp_obj_slice_indices(mp_obj_t self_in, mp_int_t length, mp_bound_slice_t *result) {
mp_obj_slice_t *self = MP_OBJ_TO_PTR(self_in); mp_obj_slice_t *self = MP_OBJ_TO_PTR(self_in);

View file

@ -39,7 +39,7 @@ typedef struct _mp_obj_float_t {
mp_float_t value; mp_float_t value;
} mp_obj_float_t; } mp_obj_float_t;
#if MICROPY_VERSION_MAJOR == 1 && MICROPY_VERSION_MINOR == 11 #if defined(MICROPY_VERSION_MAJOR) && MICROPY_VERSION_MAJOR == 1 && MICROPY_VERSION_MINOR == 11
typedef struct _mp_obj_slice_t { typedef struct _mp_obj_slice_t {
mp_obj_base_t base; mp_obj_base_t base;
mp_obj_t start; mp_obj_t start;