From 493339e9690dcf9e30cd83e104f59d501532765d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 13 Dec 2008 14:02:28 +0000 Subject: [PATCH] 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 --- libs/midi++2/midi++/midnam_patch.h | 7 +++---- 1 file 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) {