From 1ff7a4ae9c19ffd0713f92a108af284690862d36 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 20 Jul 2013 12:33:08 -0700 Subject: 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 --- src/void.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}; -- cgit v1.2.3