fix up java-style expression to have correct C++ semantics

git-svn-id: svn://localhost/ardour2/branches/3.0@4318 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2008-12-13 14:02:28 +00:00
parent dcc8f688cd
commit 493339e969

View file

@ -50,10 +50,9 @@ public:
}
bool is_sane() {
return
0 <= msb <= 127 &&
0 <= lsb <= 127 &&
0 <= program_number <= 127;
return ((msb >= 0) && (msb <= 127) &&
(lsb >= 0) && (lsb <= 127) &&
(program_number >=0 ) && (program_number <= 127));
}
inline PatchPrimaryKey& operator=(const PatchPrimaryKey& id) {