mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -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_time = mouse_time;
|
||||
|
||||
int modifiers = 0;
|
||||
uint8_t modifiers = 0;
|
||||
if (orig_num_clicks == 2) {
|
||||
modifiers |= MOD_MASK_2CLICK;
|
||||
} 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
|
||||
buf[0] = K_SPECIAL;
|
||||
buf[1] = KS_MODIFIER;
|
||||
buf[2] = (uint8_t)modifiers;
|
||||
buf[2] = modifiers;
|
||||
bufsize += 3;
|
||||
} else {
|
||||
buf[2] |= (uint8_t)modifiers;
|
||||
buf[2] |= modifiers;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user