From 99a3da3b60d518ee3b590fb6c693c1e189e3bb30 Mon Sep 17 00:00:00 2001 From: Dave Astels Date: Wed, 21 Aug 2019 15:24:39 -0400 Subject: Get rid of the last bits of array dependancy --- shared-bindings/displayio/Display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared-bindings/displayio/Display.c b/shared-bindings/displayio/Display.c index 92af86929..0c48b0cc5 100644 --- a/shared-bindings/displayio/Display.c +++ b/shared-bindings/displayio/Display.c @@ -389,12 +389,12 @@ STATIC mp_obj_t displayio_display_obj_fill_row(size_t n_args, const mp_obj_t *po mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args); displayio_display_obj_t *self = native_display(pos_args[0]); mp_int_t y = args[ARG_y].u_int; - mp_obj_array_t *result = args[ARG_buffer].u_obj; + mp_obj_t *result = args[ARG_buffer].u_obj; mp_buffer_info_t bufinfo; mp_get_buffer_raise(result, &bufinfo, MP_BUFFER_WRITE); - if (result->typecode != BYTEARRAY_TYPECODE) { + if (bufinfo.typecode != BYTEARRAY_TYPECODE) { mp_raise_ValueError(translate("Buffer is not a bytearray.")); } if (self->colorspace.depth != 16) { -- cgit v1.2.3