summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-12 22:06:03 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-12 22:10:53 -0800
commitff8ee7eeee694476140fe51fc0a47f9c694c5541 (patch)
tree6e0b75d2e5de350e110fc4590abe522fa0ea1011
parent10105c373b973ef73b8ab19ee62fc152b7230da2 (diff)
Declare bit to shift as unsigned to clear compiler warning
"xkbvleds.c", line 343: warning: integer overflow detected: op "<<" Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xkbvleds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkbvleds.c b/xkbvleds.c
index bfbb57a..3151ed8 100644
--- a/xkbvleds.c
+++ b/xkbvleds.c
@@ -339,7 +339,7 @@ main(int argc, char *argv[])
XkbSelectEvents(inDpy, XkbUseCoreKbd, XkbIndicatorStateNotifyMask,
XkbIndicatorStateNotifyMask);
XkbGetIndicatorState(inDpy, XkbUseCoreKbd, &n);
- bit = (1 << (XkbNumIndicators - 1));
+ bit = (1U << (XkbNumIndicators - 1));
for (i = XkbNumIndicators - 1; i >= 0; i--, bit >>= 1) {
if (wanted & bit) {
char buf[12];