Skip to content

Commit

Permalink
DfxPlugin::dfx_GetNumPluginProperties + dfx_GetNumAdditionalPluginPro…
Browse files Browse the repository at this point in the history
…perties should return size_t
  • Loading branch information
sophiapoirier committed Oct 2, 2022
1 parent 1921a5a commit 70ff71e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dfx-library/dfxplugin-audiounit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ OSStatus DfxPlugin::GetProperty(AudioUnitPropertyID inPropertyID,
case kLogicAUProperty_NodePropertyDescriptions:
{
auto const nodePropertyDescs = static_cast<LogicAUNodePropertyDescription*>(outData);
for (long i = 0; i < dfx_GetNumPluginProperties(); i++)
for (size_t i = 0; i < dfx_GetNumPluginProperties(); i++)
{
auto& nodePropertyDesc = nodePropertyDescs[i];
nodePropertyDesc.mPropertyID = dfx::kPluginProperty_StartID + i;
Expand Down
4 changes: 2 additions & 2 deletions dfx-library/dfxplugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -490,11 +490,11 @@ class DfxPlugin : public TARGET_API_BASE_CLASS
{
return dfx::kStatus_InvalidProperty;
}
long dfx_GetNumPluginProperties()
size_t dfx_GetNumPluginProperties() const
{
return dfx::kPluginProperty_NumProperties + dfx_GetNumAdditionalPluginProperties();
}
virtual long dfx_GetNumAdditionalPluginProperties()
virtual size_t dfx_GetNumAdditionalPluginProperties() const
{
return 0;
}
Expand Down

0 comments on commit 70ff71e

Please sign in to comment.