Skip to content

Commit b978712

Browse files
committed
Fix length validation for palette in the stage library bindings
Right now it's impossible to use the Stage library, because it always throws a validation error.
1 parent 6d4e865 commit b978712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/_stage/Text.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static mp_obj_t text_make_new(const mp_obj_type_t *type, size_t n_args,
4747

4848
mp_buffer_info_t palette_bufinfo;
4949
mp_get_buffer_raise(args[3], &palette_bufinfo, MP_BUFFER_READ);
50-
mp_arg_validate_length(font_bufinfo.len, 32, MP_QSTR_palette);
50+
mp_arg_validate_length(palette_bufinfo.len, 32, MP_QSTR_palette);
5151

5252
mp_buffer_info_t chars_bufinfo;
5353
mp_get_buffer_raise(args[4], &chars_bufinfo, MP_BUFFER_READ);

0 commit comments

Comments
 (0)