[Pkg-wmaker-commits] [wmbubble] 31/207: We're doing bitwise tests, so it's got to be & instead of ==

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 04:17:56 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmbubble.

commit fcb8a7521158c6a487b0330321a1cc0e468a9359
Author: Robert Jacobs <rnjacobs at mit.edu>
Date:   Tue Jul 26 22:35:44 2011 -0700

    We're doing bitwise tests, so it's got to be & instead of ==
---
 bubblemon.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bubblemon.c b/bubblemon.c
index 42e97f3..ad5e4e7 100644
--- a/bubblemon.c
+++ b/bubblemon.c
@@ -478,8 +478,8 @@ static int get_screen_selection(void) {
 
 	XQueryKeymap(wmxp_display, keys);
 
-	if ((keys[lshift_code >> 3] == (1 << (lshift_code % 8))) ||
-	    (keys[rshift_code >> 3] == (1 << (rshift_code % 8)))) {
+	if ((keys[lshift_code >> 3] & (1 << (lshift_code % 8))) ||
+	    (keys[rshift_code >> 3] & (1 << (rshift_code % 8)))) {
 		return 0;
 	} else {
 		return 1;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbubble.git



More information about the Pkg-wmaker-commits mailing list