summaryrefslogtreecommitdiff
path: root/libs/ardour/meter.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-09-27 18:07:37 +0000
committerDavid Robillard <d@drobilla.net>2008-09-27 18:07:37 +0000
commit909995338c970e9f8f7a51886502640527f2061e (patch)
tree9e3f52c29d61981886eff22df3a4984a4692d64a /libs/ardour/meter.cc
parent86b747890e4284bae0fa9fb16847b71fa9e89498 (diff)
Fix warnings.
Mostly fix MIDI track resizing wackiness (from torbenh). git-svn-id: svn://localhost/ardour2/branches/3.0@3817 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/meter.cc')
-rw-r--r--libs/ardour/meter.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/meter.cc b/libs/ardour/meter.cc
index b718241333..8ad5e391a2 100644
--- a/libs/ardour/meter.cc
+++ b/libs/ardour/meter.cc
@@ -35,9 +35,9 @@ namespace ARDOUR {
void
PeakMeter::run_in_place (BufferSet& bufs, nframes_t start_frame, nframes_t end_frame, nframes_t nframes, nframes_t offset)
{
- size_t n = 0;
- size_t meterable = std::min((size_t)bufs.count().n_total(), _peak_power.size());
- size_t limit = std::min (meterable, bufs.count().n_midi());
+ uint32_t n = 0;
+ uint32_t meterable = std::min(bufs.count().n_total(), (uint32_t)_peak_power.size());
+ uint32_t limit = std::min (meterable, bufs.count().n_midi());
// Meter what we have (midi)
for ( ; n < limit; ++n) {