This must round down; otherwise we can end up with the outhop exceeding 256 for some hops when we haven't planned it

This commit is contained in:
Chris Cannam
2022-06-15 10:00:49 +01:00
parent a61a4f3201
commit 3db535281b

View File

@@ -276,7 +276,7 @@ R3StretcherImpl::calculateHop()
inhop = 768.0;
}
m_inhop = int(round(inhop));
m_inhop = int(floor(inhop));
std::cout << "R3StretcherImpl::calculateHop: inhop = " << m_inhop << ", proposed outhop = " << proposedOuthop << ", mean outhop = " << m_inhop * ratio << std::endl;
}