diff options
| author | Roy Hooper <rhooper@toybox.ca> | 2020-08-10 12:04:44 -0400 |
|---|---|---|
| committer | Roy Hooper <rhooper@toybox.ca> | 2020-08-10 12:04:44 -0400 |
| commit | ef1782f85e9020a01658d28708b44444915f74b2 (patch) | |
| tree | a4e65e5e01b13a49bd1b70c4a10a54a7aade7838 | |
| parent | 00a3a25b945605dd47e56476f0545a50d9f542d3 (diff) | |
fix trailing whitespace
| -rw-r--r-- | shared-bindings/_pixelbuf/PixelBuf.c | 2 | ||||
| -rw-r--r-- | shared-module/_pixelbuf/PixelBuf.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/shared-bindings/_pixelbuf/PixelBuf.c b/shared-bindings/_pixelbuf/PixelBuf.c index 758801e51..1ffca7edf 100644 --- a/shared-bindings/_pixelbuf/PixelBuf.c +++ b/shared-bindings/_pixelbuf/PixelBuf.c @@ -331,7 +331,7 @@ STATIC mp_obj_t pixelbuf_pixelbuf_subscr(mp_obj_t self_in, mp_obj_t index_in, mp #if MICROPY_PY_ARRAY_SLICE_ASSIGN size_t num_items = mp_obj_get_int(mp_obj_len(value)); - + if (num_items != slice_len && num_items != (slice_len * common_hal__pixelbuf_pixelbuf_get_bpp(self_in))) { mp_raise_ValueError_varg(translate("Unmatched number of items on RHS (expected %d, got %d)."), slice_len, num_items); } diff --git a/shared-module/_pixelbuf/PixelBuf.c b/shared-module/_pixelbuf/PixelBuf.c index 50906fcc1..0dc2a5ab8 100644 --- a/shared-module/_pixelbuf/PixelBuf.c +++ b/shared-module/_pixelbuf/PixelBuf.c @@ -139,7 +139,7 @@ uint8_t _pixelbuf_get_as_uint8(mp_obj_t obj) { return mp_obj_get_int_truncated(obj); } else if (mp_obj_is_float(obj)) { return (uint8_t)mp_obj_get_float(obj); - } + } mp_raise_TypeError_varg( translate("can't convert %q to %q"), mp_obj_get_type_qstr(obj), MP_QSTR_int); } |
