Skip to content

Commit ef1782f

Browse files
committed
fix trailing whitespace
1 parent 00a3a25 commit ef1782f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shared-bindings/_pixelbuf/PixelBuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ STATIC mp_obj_t pixelbuf_pixelbuf_subscr(mp_obj_t self_in, mp_obj_t index_in, mp
331331
#if MICROPY_PY_ARRAY_SLICE_ASSIGN
332332

333333
size_t num_items = mp_obj_get_int(mp_obj_len(value));
334-
334+
335335
if (num_items != slice_len && num_items != (slice_len * common_hal__pixelbuf_pixelbuf_get_bpp(self_in))) {
336336
mp_raise_ValueError_varg(translate("Unmatched number of items on RHS (expected %d, got %d)."), slice_len, num_items);
337337
}

shared-module/_pixelbuf/PixelBuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ uint8_t _pixelbuf_get_as_uint8(mp_obj_t obj) {
139139
return mp_obj_get_int_truncated(obj);
140140
} else if (mp_obj_is_float(obj)) {
141141
return (uint8_t)mp_obj_get_float(obj);
142-
}
142+
}
143143
mp_raise_TypeError_varg(
144144
translate("can't convert %q to %q"), mp_obj_get_type_qstr(obj), MP_QSTR_int);
145145
}

0 commit comments

Comments
 (0)