More warnings fixed

This commit is contained in:
Jan Möbius
2016-10-28 10:44:04 +02:00
parent 4dd321bbdd
commit 4377803708
3 changed files with 4 additions and 3 deletions

View File

@@ -185,7 +185,7 @@ class ModRoundnessT : public ModBaseT<MeshT>
// the smaller the factor, the smaller min_r_ gets
// thus creating a stricter constraint
// division by error_tolerance_factor_ is for normalization
value_type min_roundness = min_r_ * _factor / this->error_tolerance_factor_;
value_type min_roundness = min_r_ * static_cast<value_type>(_factor / this->error_tolerance_factor_);
set_min_roundness(min_roundness);
this->error_tolerance_factor_ = _factor;
}