diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc index b1e5cc1d4c..b93047761b 100644 --- a/libs/ardour/sndfilesource.cc +++ b/libs/ardour/sndfilesource.cc @@ -353,9 +353,9 @@ SndFileSource::read_unlocked (Sample *dst, framepos_t start, framecnt_t cnt) con { assert (cnt >= 0); - int32_t nread; + framecnt_t nread; float *ptr; - uint32_t real_cnt; + framecnt_t real_cnt; framepos_t file_cnt; if (writable() && !_sndfile) { @@ -425,7 +425,7 @@ SndFileSource::read_unlocked (Sample *dst, framepos_t start, framecnt_t cnt) con /* stride through the interleaved data */ - for (int32_t n = 0; n < nread; ++n) { + for (framecnt_t n = 0; n < nread; ++n) { dst[n] = *ptr; ptr += _info.channels; }