aboutsummaryrefslogtreecommitdiff
path: root/tty-keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty-keys.c b/tty-keys.c
index 3381aefe..223d574e 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -630,10 +630,10 @@ tty_keys_mouse(struct tty *tty,
utf8_append(&utf8data, buf[*size]);
value = utf8_combine(&utf8data);
} else
- value = buf[*size];
+ value = (unsigned char)buf[*size];
(*size)++;
} else {
- value = buf[*size];
+ value = (unsigned char)buf[*size];
(*size)++;
}