From 8b951bb9ee65f3d530848c3c08b8b54e6571317f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 13 Oct 2008 02:39:17 +0000 Subject: [PATCH] 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 --- libs/surfaces/mackie/mackie_port.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;