Merge pull request #36 from hexwab/midimacrofix

Add missing argument parenthesis on the MIDI_EVENT() macro.
pull/1469/head
Dean Camera 10 years ago
commit 7423c1213f

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

Loading…
Cancel
Save