diff options
author | William Wilgus <wilgus.william@gmail.com> | 2020-07-27 23:24:49 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2020-07-27 23:24:49 -0400 |
commit | 7f27d2dd52a9582be93b69c9f844250c1650335c (patch) | |
tree | b6763c675d934081045db085537957dbe1a79502 | |
parent | 9e2eceeb33cbb7756896d68372c835d0b9cc0c79 (diff) | |
download | rockbox-7f27d2d.tar.gz rockbox-7f27d2d.zip |
kbd_helper fix yellow
Change-Id: Ib54b36760678e88d3857ba70b0f4d1e1661bb0ad
-rw-r--r-- | apps/plugins/lib/kbd_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lib/kbd_helper.c b/apps/plugins/lib/kbd_helper.c index 4eba082ce1..e3a844a993 100644 --- a/apps/plugins/lib/kbd_helper.c +++ b/apps/plugins/lib/kbd_helper.c @@ -40,7 +40,7 @@ int kbd_create_layout(char *layout, unsigned short *buf, int bufsz) const unsigned char *p = layout; int len = 0; pbuf = buf; - while (*p && (pbuf - buf + sizeof(unsigned short)) < bufsz) + while (*p && (pbuf - buf + (ptrdiff_t) sizeof(unsigned short)) < bufsz) { p = rb->utf8decode(p, &pbuf[len+1]); if (pbuf[len+1] == '\n') |