summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-20 12:33:08 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-20 12:33:08 -0700
commit1ff7a4ae9c19ffd0713f92a108af284690862d36 (patch)
treed9fd948f510d7c15066e5d64dd9e93dda72798b4
parente0f0ab22a53899a137a00ada696b42f1cabcdf1c (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/void.c b/src/void.c
index b1225d6..17bd38b 100644
--- a/src/void.c
+++ b/src/void.c
@@ -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};