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:
Alan Coopersmith
2013-07-20 12:33:08 -07:00
parent e0f0ab22a5
commit 1ff7a4ae9c

View File

@@ -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};