aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/midi/coreaudio.cpp2
-rw-r--r--backends/midi/coremidi.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/backends/midi/coreaudio.cpp b/backends/midi/coreaudio.cpp
index df02f62c32..d52547c997 100644
--- a/backends/midi/coreaudio.cpp
+++ b/backends/midi/coreaudio.cpp
@@ -142,7 +142,7 @@ int MidiDriver_CORE::open() {
}
if (err != noErr)
- warning("Failed loading custom sound font '%s' (error %ld)\n", soundfont, err);
+ warning("Failed loading custom sound font '%s' (error %ld)\n", soundfont, (long)err);
}
#ifdef COREAUDIO_DISABLE_REVERB
diff --git a/backends/midi/coremidi.cpp b/backends/midi/coremidi.cpp
index a1191c5129..e48b98a807 100644
--- a/backends/midi/coremidi.cpp
+++ b/backends/midi/coremidi.cpp
@@ -109,8 +109,8 @@ void MidiDriver_CoreMIDI::close() {
}
void MidiDriver_CoreMIDI::send(uint32 b) {
- assert(mOutPort != NULL);
- assert(mDest != NULL);
+ assert(mOutPort != 0);
+ assert(mDest != 0);
// Extract the MIDI data
byte status_byte = (b & 0x000000FF);
@@ -153,8 +153,8 @@ void MidiDriver_CoreMIDI::send(uint32 b) {
}
void MidiDriver_CoreMIDI::sysEx(const byte *msg, uint16 length) {
- assert(mOutPort != NULL);
- assert(mDest != NULL);
+ assert(mOutPort != 0);
+ assert(mDest != 0);
byte buf[384];
MIDIPacketList *packetList = (MIDIPacketList *)buf;