From 9916273dd75b02394e4e41cf574d5efe773dbf9f Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 6 Feb 2022 17:12:47 +0100 Subject: [PATCH] [text] explicit cast to char --- src/viewer/text/view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewer/text/view.c b/src/viewer/text/view.c index 6f65b3e1..7e5f7f38 100644 --- a/src/viewer/text/view.c +++ b/src/viewer/text/view.c @@ -1248,7 +1248,7 @@ try_prefix_key(struct session *ses, struct document_view *doc_view, if (digit >= 1 && get_kbd_modifier(ev) == KBD_MOD_NONE) { int nlinks = document->nlinks, length; - char d[2] = { get_kbd_key(ev), 0 }; + char d[2] = { (char)get_kbd_key(ev), 0 }; set_kbd_repeat_count(ses, 0);