mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
os/input.c: Eliminate conversion warning from gcc 5 #2617
This commit is contained in:
parent
001209a2fe
commit
bcfc559395
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user