summaryrefslogtreecommitdiff
path: root/framebuffer/fbtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'framebuffer/fbtk.c')
-rw-r--r--framebuffer/fbtk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/framebuffer/fbtk.c b/framebuffer/fbtk.c
index 70e94b03f..0284b19a1 100644
--- a/framebuffer/fbtk.c
+++ b/framebuffer/fbtk.c
@@ -1348,10 +1348,10 @@ int fbtk_keycode_to_ucs4(int code, uint8_t mods)
int ucs4 = -1;
if (mods) {
- if ((code >= 0) && (code < sizeof(sh_keymap)))
+ if ((code >= 0) && (code < (int) sizeof(sh_keymap)))
ucs4 = sh_keymap[code];
} else {
- if ((code >= 0) && (code < sizeof(keymap)))
+ if ((code >= 0) && (code < (int) sizeof(keymap)))
ucs4 = keymap[code];
}
return ucs4;