Fix diagnostics in CircuitPython
This commit is contained in:
parent
9cd13000b7
commit
4666bbd4de
2 changed files with 2 additions and 2 deletions
|
|
@ -233,7 +233,7 @@ mp_uint_t ndarray_print_edgeitems = NDARRAY_PRINT_EDGEITEMS;
|
|||
//| """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) {
|
||||
mp_obj_slice_t *self = MP_OBJ_TO_PTR(self_in);
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ typedef struct _mp_obj_float_t {
|
|||
mp_float_t value;
|
||||
} 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 {
|
||||
mp_obj_base_t base;
|
||||
mp_obj_t start;
|
||||
|
|
|
|||
Loading…
Reference in a new issue