diff options
author | Pierre Ossman <ossman@cendio.se> | 2015-03-03 16:39:37 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2015-03-03 16:39:37 +0100 |
commit | 7728be27d08e7ae362a15a2affb1f502d439b561 (patch) | |
tree | bae3d8008ef6126b091cfa096621b43a11812a50 /common | |
parent | b1cd6ca8f0c6c77ec66cba47004137297ae020d6 (diff) | |
download | tigervnc-7728be27d08e7ae362a15a2affb1f502d439b561.tar.gz tigervnc-7728be27d08e7ae362a15a2affb1f502d439b561.zip |
Add extra parentheses to avoid and/or priority ambiguity
Diffstat (limited to 'common')
-rw-r--r-- | common/rfb/VNCSConnectionST.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx index 5adb766e..932abc0b 100644 --- a/common/rfb/VNCSConnectionST.cxx +++ b/common/rfb/VNCSConnectionST.cxx @@ -1131,7 +1131,7 @@ void VNCSConnectionST::setStatus(int status) accessRights = accessRights | AccessPtrEvents | AccessKeyEvents | AccessView; break; case 1: - accessRights = accessRights & ~(AccessPtrEvents | AccessKeyEvents) | AccessView; + accessRights = (accessRights & ~(AccessPtrEvents | AccessKeyEvents)) | AccessView; break; case 2: accessRights = accessRights & ~(AccessPtrEvents | AccessKeyEvents | AccessView); |