Merge branch 'bpmdetect-warning-size_t-int' into 'master'

BPMDetect: Make conversion from size_t to int explicit

See merge request soundtouch/soundtouch!7
This commit is contained in:
Olli Parviainen 2020-05-10 14:39:52 +00:00
commit 1e56c65ea5

View File

@ -561,7 +561,7 @@ float BPMDetect::getBpm()
/// \return number of beats in the arrays.
int BPMDetect::getBeats(float *pos, float *values, int max_num)
{
int num = beats.size();
int num = (int)beats.size();
if ((!pos) || (!values)) return num; // pos or values NULL, return just size
for (int i = 0; (i < num) && (i < max_num); i++)