about summary refs log tree commit diff stats
path: root/termbox/input.inl
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-09 08:56:12 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-09 08:56:43 -0700
commit9ba313ab7ff8c2c0998fd3f81411a327adbbfe84 (patch)
tree99ae3661af9b2848f0235a280f7759a27a319681 /termbox/input.inl
parente0053bcb206dc7c126713f15d4a1e2672e5579a5 (diff)
downloadmu-9ba313ab7ff8c2c0998fd3f81411a327adbbfe84.tar.gz
1313 - merge termbox
Diffstat (limited to 'termbox/input.inl')
-rw-r--r--termbox/input.inl4
1 files changed, 2 insertions, 2 deletions
diff --git a/termbox/input.inl b/termbox/input.inl
index 6493273c..618e0b28 100644
--- a/termbox/input.inl
+++ b/termbox/input.inl
@@ -42,8 +42,8 @@ static int parse_escape_seq(struct tb_event *event, const char *buf, int len)
     event->type = TB_EVENT_MOUSE; // TB_EVENT_KEY by default
 
     // the coord is 1,1 for upper left
-    event->x = buf[4] - 1 - 32;
-    event->y = buf[5] - 1 - 32;
+    event->x = (uint8_t)buf[4] - 1 - 32;
+    event->y = (uint8_t)buf[5] - 1 - 32;
 
     return 6;
   }