mirror of
https://github.com/X11Libre/xf86-input-void.git
synced 2026-03-24 09:34:08 +00:00
Fix an integer truncation warning from clang
void.c:114:21: warning: implicit conversion loses integer precision:
'int' to 'unsigned char' [-Wconversion]
map[i + 1] = i + 1;
~ ~~^~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
@@ -91,7 +91,7 @@ xf86VoidControlProc(DeviceIntPtr device, int what)
|
||||
{
|
||||
InputInfoPtr pInfo;
|
||||
unsigned char map[MAXBUTTONS + 1];
|
||||
int i;
|
||||
unsigned char i;
|
||||
Bool result;
|
||||
Atom btn_labels[MAXBUTTONS] = {0};
|
||||
Atom axes_labels[2] = {0};
|
||||
|
||||
Reference in New Issue
Block a user