diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-20 12:33:08 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-20 12:33:08 -0700 |
commit | 1ff7a4ae9c19ffd0713f92a108af284690862d36 (patch) | |
tree | d9fd948f510d7c15066e5d64dd9e93dda72798b4 | |
parent | e0f0ab22a53899a137a00ada696b42f1cabcdf1c (diff) |
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>
-rw-r--r-- | src/void.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}; |