mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix a compiler warning.
Signed-off-by: Michael Keller <mikeller@042.ch>
This commit is contained in:
parent
515f593a56
commit
96fdaf660b
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ bool DivePlannerPointsModel::setData(const QModelIndex &index, const QVariant &v
|
||||||
}
|
}
|
||||||
case CCSETPOINT: {
|
case CCSETPOINT: {
|
||||||
bool ok;
|
bool ok;
|
||||||
int po2 = round(value.toFloat(&ok) * 100) * 10;
|
int po2 = lrintf(value.toFloat(&ok) * 100) * 10;
|
||||||
|
|
||||||
if (ok)
|
if (ok)
|
||||||
p.setpoint = std::max(po2, 160);
|
p.setpoint = std::max(po2, 160);
|
||||||
|
|
Loading…
Add table
Reference in a new issue