diff options
| author | Jeff Epler <jeff@adafruit.com> | 2020-10-01 10:59:02 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-01 10:59:02 -0500 |
| commit | e477d27be36cf78ac4a7166aa18604b2f0bc910a (patch) | |
| tree | 9b988b5e644513a681021c742ec113587d72853b /shared-bindings | |
| parent | e4b9c168912799d126894dbdf44f6af5c5d4878d (diff) | |
Update shared-bindings/rgbmatrix/RGBMatrix.c
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
Diffstat (limited to 'shared-bindings')
| -rw-r--r-- | shared-bindings/rgbmatrix/RGBMatrix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-bindings/rgbmatrix/RGBMatrix.c b/shared-bindings/rgbmatrix/RGBMatrix.c index 7ddbd36fb..753c1c920 100644 --- a/shared-bindings/rgbmatrix/RGBMatrix.c +++ b/shared-bindings/rgbmatrix/RGBMatrix.c @@ -214,7 +214,7 @@ STATIC mp_obj_t rgbmatrix_rgbmatrix_make_new(const mp_obj_type_t *type, size_t n } } - if (args[ARG_width] <= 0) { + if (args[ARG_width].u_int <= 0) { mp_raise_ValueError(translate("width must be greater than zero")); } |
