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) {