Skip to content

Commit

Permalink
[emscripten] fix getPortName() runtime signature mismatch.
Browse files Browse the repository at this point in the history
Earlier versions of emscripten did not complain about this extra argument
but it became more strict and correctly reports the mismatch.
  • Loading branch information
atsushieno committed Jan 7, 2022
1 parent b782953 commit 3f94259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RtMidi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3723,7 +3723,7 @@ std::string WebMidiAccessShim::getPortName( unsigned int portNumber, bool isInpu
var ret = _malloc(length);
stringToUTF8(port.name, ret, length);
return ret;
}, portNumber, isInput, &ret );
}, portNumber, isInput);
if (ret == nullptr)
return "";
std::string s = ret;
Expand Down

0 comments on commit 3f94259

Please sign in to comment.