Mercurial > hg > vamp-plugin-sdk
diff src/vamp-hostsdk/PluginSummarisingAdapter.cpp @ 265:03c7167e1f30
* Use _VAMP_PLUGIN_IN_HOST_NAMESPACE rather than omitting plugin namespace
completely in host context
* Doc and build warning updates
author | cannam |
---|---|
date | Thu, 20 Nov 2008 20:16:05 +0000 |
parents | 4454843ff384 |
children | 9dc3a5e17600 |
line wrap: on
line diff
--- a/src/vamp-hostsdk/PluginSummarisingAdapter.cpp Thu Nov 20 17:33:12 2008 +0000 +++ b/src/vamp-hostsdk/PluginSummarisingAdapter.cpp Thu Nov 20 20:16:05 2008 +0000 @@ -522,7 +522,7 @@ result.time = timestamp; result.duration = INVALID_DURATION; - if (f.values.size() > m_accumulators[output].bins) { + if (int(f.values.size()) > m_accumulators[output].bins) { m_accumulators[output].bins = f.values.size(); } @@ -629,7 +629,7 @@ // interest)... but perhaps it's the user's problem if they // ask for segmentation (or any summary at all) in that case - for (int n = 0; n < source.results.size(); ++n) { + for (int n = 0; n < int(source.results.size()); ++n) { // This result spans source.results[n].time to // source.results[n].time + source.results[n].duration. @@ -760,7 +760,7 @@ std::vector<ValueDurationFloatPair> valvec; for (int k = 0; k < sz; ++k) { - while (accumulator.results[k].values.size() < + while (int(accumulator.results[k].values.size()) < accumulator.bins) { accumulator.results[k].values.push_back(0.f); }