summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/mackie_port.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-13 02:39:17 +0000
committerDavid Robillard <d@drobilla.net>2008-10-13 02:39:17 +0000
commit8b951bb9ee65f3d530848c3c08b8b54e6571317f (patch)
treeca5e394f9f63dcc083ef4db4cd33c9de2bebfc4f /libs/surfaces/mackie/mackie_port.cc
parent62c9bce040bed614b72396f124e4d18b3059ade7 (diff)
Fix warning.
Hope this is what was intended.... Precedence is the devil. git-svn-id: svn://localhost/ardour2/branches/3.0@3946 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/mackie_port.cc')
-rw-r--r--libs/surfaces/mackie/mackie_port.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/surfaces/mackie/mackie_port.cc b/libs/surfaces/mackie/mackie_port.cc
index 9bcee638fb..75e78e7f15 100644
--- a/libs/surfaces/mackie/mackie_port.cc
+++ b/libs/surfaces/mackie/mackie_port.cc
@@ -176,7 +176,7 @@ MidiByteArray calculate_challenge_response( MidiByteArray::iterator begin, MidiB
// from the Logic docs.
retval << ( 0x7f & ( l[0] + ( l[1] ^ 0xa ) - l[3] ) );
retval << ( 0x7f & ( ( l[2] >> l[3] ) ^ ( l[0] + l[3] ) ) );
- retval << ( 0x7f & ( l[3] - ( l[2] << 2 ) ^ ( l[0] | l[1] ) ) );
+ retval << ( 0x7f & ( (l[3] - ( l[2] << 2 )) ^ ( l[0] | l[1] ) ) );
retval << ( 0x7f & ( l[1] - l[2] + ( 0xf0 ^ ( l[3] << 4 ) ) ) );
return retval;