summaryrefslogtreecommitdiff
path: root/clients/simple-touch.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-03-30 11:52:39 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-03-30 11:52:39 -0400
commit875ab9e73505cfe922c28bc72f716995f1191ad8 (patch)
tree2f844ab1c07aebb3548c60e7f687895f238fc329 /clients/simple-touch.c
parented92f79655e65f2acd40b99d8c6281a17845d8d8 (diff)
downloadweston-875ab9e73505cfe922c28bc72f716995f1191ad8.tar.gz
Add signedness warning flag and fix fallout
Diffstat (limited to 'clients/simple-touch.c')
-rw-r--r--clients/simple-touch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/simple-touch.c b/clients/simple-touch.c
index ade720e3..0e2bac60 100644
--- a/clients/simple-touch.c
+++ b/clients/simple-touch.c
@@ -166,7 +166,7 @@ touch_paint(struct touch *touch, int32_t x, int32_t y, int32_t id)
0xffff00ff,
};
- if (id < ARRAY_LENGTH(colors))
+ if (id < (int32_t) ARRAY_LENGTH(colors))
c = colors[id];
else
c = 0xffffffff;