use c++ style casts

This commit is contained in:
danielque
2018-04-06 12:47:05 +02:00
parent 36a1d4a309
commit 2df36bd22a
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ MarkovPath::MarkovPath
if(meanIntervalSteps_<0)
{
// if no mean interval length for consecutive steps is specified, use 1/5 from first interval
meanIntervalSteps_ = (label) (0.2 * intervalSizes_[0]);
meanIntervalSteps_ = static_cast<label>(0.2 * intervalSizes_[0]);
}
// normalize weights and create cumulative distribution

View File

@ -67,7 +67,7 @@ multiIntervalPath::multiIntervalPath
if(meanIntervalSteps_<0)
{
// if no mean interval length for consecutive steps is specified, use 1/5 from first interval
meanIntervalSteps_ = (label) (0.2 * intervalSizes_[0]);
meanIntervalSteps_ = static_cast<label>(0.2 * intervalSizes_[0]);
}
// normalize weights