add parens around args in MIDI_EVENT macro

This commit is contained in:
Tom Hargreaves 2014-09-06 04:53:36 +01:00
parent 2f4b2e6f34
commit b1603ba06e
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@
* *
* \return Constructed MIDI event ID. * \return Constructed MIDI event ID.
*/ */
#define MIDI_EVENT(virtualcable, command) ((virtualcable << 4) | (command >> 4)) #define MIDI_EVENT(virtualcable, command) (((virtualcable) << 4) | ((command) >> 4))
/* Enums: */ /* Enums: */
/** Enum for the possible MIDI jack types in a MIDI device jack descriptor. */ /** Enum for the possible MIDI jack types in a MIDI device jack descriptor. */