mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:23:25 +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: {
|
||||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue