Explorar o código

Added parenthesis to midi macro.

IBNobody %!s(int64=9) %!d(string=hai) anos
pai
achega
2900b48845
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      quantum/keymap_midi.h

+ 1 - 1
quantum/keymap_midi.h

@@ -20,7 +20,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #include <lufa.h>
 
-#define MIDI(n) (n | 0x6000)
+#define MIDI(n) ((n) | 0x6000)
 #define MIDI12 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000
 
 #define CHNL(note, channel) (note + (channel << 8))