Commit 1ff7a4ae authored by Alan Coopersmith's avatar Alan Coopersmith

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's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
parent e0f0ab22
......@@ -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};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment