fix old-style-cast warning

apply proper type casting
This commit is contained in:
danielque
2021-07-29 15:19:43 +02:00
parent 1def0b8516
commit ae2eba53dd

View File

@ -193,7 +193,7 @@ void MarkovPath::extendPath()
else
{
scalar randIntStart = ranGen.scalar01();
seqStart = (int)(startLoop + randIntStart*(endLoop - startLoop));
seqStart = static_cast<label>(startLoop + randIntStart*(endLoop - startLoop));
}
virtualTimeIndex = seqStart;