diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-12 22:06:03 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-12 22:10:53 -0800 |
commit | ff8ee7eeee694476140fe51fc0a47f9c694c5541 (patch) | |
tree | 6e0b75d2e5de350e110fc4590abe522fa0ea1011 | |
parent | 10105c373b973ef73b8ab19ee62fc152b7230da2 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |