Fix a compiler warning.

Signed-off-by: Michael Keller <mikeller@042.ch>
This commit is contained in:
Michael Keller 2024-09-09 12:59:13 +12:00 committed by Michael Keller
parent 515f593a56
commit 96fdaf660b

View file

@ -396,7 +396,7 @@ bool DivePlannerPointsModel::setData(const QModelIndex &index, const QVariant &v
}
case CCSETPOINT: {
bool ok;
int po2 = round(value.toFloat(&ok) * 100) * 10;
int po2 = lrintf(value.toFloat(&ok) * 100) * 10;
if (ok)
p.setpoint = std::max(po2, 160);