13
0

interpret CoreMidi unique ID as unsigned for consistency.

coremidi specifies it as SInt32 but system:midi_playback_-126632214 ,
even if only used internally, just does not seem right.
This commit is contained in:
Robin Gareus 2015-03-11 18:18:37 +01:00
parent 8587855b99
commit 087b5dc43b

View File

@ -297,7 +297,7 @@ CoreMidiIo::port_id (uint32_t port, bool input)
ss << "system:midi_capture_";
SInt32 id;
if (noErr == MIDIObjectGetIntegerProperty(_input_endpoints[port], kMIDIPropertyUniqueID, &id)) {
ss << (int)id;
ss << (unsigned int)id;
} else {
ss << port;
}
@ -305,7 +305,7 @@ CoreMidiIo::port_id (uint32_t port, bool input)
ss << "system:midi_playback_";
SInt32 id;
if (noErr == MIDIObjectGetIntegerProperty(_output_endpoints[port], kMIDIPropertyUniqueID, &id)) {
ss << (int)id;
ss << (unsigned int)id;
} else {
ss << port;
}