os/input.c: Eliminate conversion warning from gcc 5 #2617

This commit is contained in:
Björn Linse 2015-05-08 14:52:03 +02:00
parent 001209a2fe
commit bcfc559395

View File

@ -246,7 +246,7 @@ static unsigned int handle_mouse_event(char **ptr, uint8_t *buf,
orig_mouse_row = mouse_row; orig_mouse_row = mouse_row;
orig_mouse_time = mouse_time; orig_mouse_time = mouse_time;
int modifiers = 0; uint8_t modifiers = 0;
if (orig_num_clicks == 2) { if (orig_num_clicks == 2) {
modifiers |= MOD_MASK_2CLICK; modifiers |= MOD_MASK_2CLICK;
} else if (orig_num_clicks == 3) { } else if (orig_num_clicks == 3) {
@ -262,10 +262,10 @@ static unsigned int handle_mouse_event(char **ptr, uint8_t *buf,
// add the modifier sequence // add the modifier sequence
buf[0] = K_SPECIAL; buf[0] = K_SPECIAL;
buf[1] = KS_MODIFIER; buf[1] = KS_MODIFIER;
buf[2] = (uint8_t)modifiers; buf[2] = modifiers;
bufsize += 3; bufsize += 3;
} else { } else {
buf[2] |= (uint8_t)modifiers; buf[2] |= modifiers;
} }
} }