Added typecast to pow()

This commit is contained in:
oparviai 2009-01-11 11:35:44 +00:00
parent 40efe9cbef
commit 9aaf4210af

View File

@ -787,7 +787,7 @@ void TDStretch::calculateOverlapLength(int overlapMs)
overlapDividerBits = _getClosest2Power((sampleRate * overlapMs) / 1000.0);
if (overlapDividerBits > 9) overlapDividerBits = 9;
if (overlapDividerBits < 4) overlapDividerBits = 4;
newOvl = (int)pow(2, overlapDividerBits);
newOvl = (int)pow(2, (double) overlapDividerBits);
acceptNewOverlapLength(newOvl);