summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-12-13 14:02:28 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-12-13 14:02:28 +0000
commit493339e9690dcf9e30cd83e104f59d501532765d (patch)
tree757c693d5f21d7370bdbbc44b6534583d7022086
parentdcc8f688cd2b046392db7db30c37369d47c357a7 (diff)
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
-rw-r--r--libs/midi++2/midi++/midnam_patch.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/midi++2/midi++/midnam_patch.h b/libs/midi++2/midi++/midnam_patch.h
index 466b616cea..7570a9f84d 100644
--- a/libs/midi++2/midi++/midnam_patch.h
+++ b/libs/midi++2/midi++/midnam_patch.h
@@ -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) {