From 96fdaf660b76a900e8fc8bbc391aef651f627574 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Mon, 9 Sep 2024 12:59:13 +1200 Subject: [PATCH] Fix a compiler warning. Signed-off-by: Michael Keller --- qt-models/diveplannermodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index 8fe6e2b84..f01a5ed9e 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -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);