Skip to content

Commit cab564b

Browse files
authored
Merge pull request #125 from lathoub/patch-1
changed default size of enums (int) to a smaller type
2 parents 96b7fd4 + f067883 commit cab564b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/midi_Defs.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ typedef byte FilterMode;
6262
// -----------------------------------------------------------------------------
6363

6464
/*! Enumeration of MIDI types */
65-
enum MidiType
65+
enum MidiType: uint8_t
6666
{
6767
InvalidType = 0x00, ///< For notifying errors
6868
NoteOff = 0x80, ///< Note Off
@@ -116,7 +116,7 @@ enum __attribute__ ((deprecated)) MidiFilterMode
116116
See the detailed controllers numbers & description here:
117117
http://www.somascape.org/midi/tech/spec.html#ctrlnums
118118
*/
119-
enum MidiControlChangeNumber
119+
enum MidiControlChangeNumber: uint8_t
120120
{
121121
// High resolution Continuous Controllers MSB (+32 for LSB) ----------------
122122
BankSelect = 0,
@@ -192,7 +192,7 @@ enum MidiControlChangeNumber
192192

193193
struct RPN
194194
{
195-
enum RegisteredParameterNumbers
195+
enum RegisteredParameterNumbers: uint16_t
196196
{
197197
PitchBendSensitivity = 0x0000,
198198
ChannelFineTuning = 0x0001,

0 commit comments

Comments
 (0)