summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandrew morton <drewish@katherinehouse.com>2014-01-19 09:06:53 -0800
committerandrew morton <drewish@katherinehouse.com>2014-01-19 09:09:40 -0800
commit9948f9be323d520f6cb5c0c4518caececd5bf892 (patch)
treef0e430af6b792dba459a70c786e63b0be9683faf
parent403414019715d56e990da67b9268dee0ecf03c50 (diff)
Fix null conversion warning
Avoid this compilation warning: warning: implicit conversion of NULL constant to 'MIDIEntityRef' (aka 'unsigned int') [-Wnull-conversion]
-rw-r--r--RtMidi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/RtMidi.cpp b/RtMidi.cpp
index 33738a9..3bd7f11 100644
--- a/RtMidi.cpp
+++ b/RtMidi.cpp
@@ -653,7 +653,7 @@ CFStringRef EndpointName( MIDIEndpointRef endpoint, bool isExternal )
CFRelease( str );
}
- MIDIEntityRef entity = NULL;
+ MIDIEntityRef entity = 0;
MIDIEndpointGetEntity( endpoint, &entity );
if ( entity == 0 )
// probably virtual