Skip to content

Commit 99a3da3

Browse files
committed
Get rid of the last bits of array dependancy
1 parent d547d59 commit 99a3da3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

shared-bindings/displayio/Display.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,12 @@ STATIC mp_obj_t displayio_display_obj_fill_row(size_t n_args, const mp_obj_t *po
389389
mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
390390
displayio_display_obj_t *self = native_display(pos_args[0]);
391391
mp_int_t y = args[ARG_y].u_int;
392-
mp_obj_array_t *result = args[ARG_buffer].u_obj;
392+
mp_obj_t *result = args[ARG_buffer].u_obj;
393393

394394
mp_buffer_info_t bufinfo;
395395
mp_get_buffer_raise(result, &bufinfo, MP_BUFFER_WRITE);
396396

397-
if (result->typecode != BYTEARRAY_TYPECODE) {
397+
if (bufinfo.typecode != BYTEARRAY_TYPECODE) {
398398
mp_raise_ValueError(translate("Buffer is not a bytearray."));
399399
}
400400
if (self->colorspace.depth != 16) {

0 commit comments

Comments
 (0)