mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
cleanup: make feet_to_mm signed
Depths are pretty much universally stored using signed integers (e.g. depth_t is signed int). For consistency, make feet_to_mm() likewise return a signed value. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
4f1034b605
commit
efab955d85
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ static inline double m_to_mile(int m)
|
|||
return m / 1609.344;
|
||||
}
|
||||
|
||||
static inline unsigned long feet_to_mm(double feet)
|
||||
static inline long feet_to_mm(double feet)
|
||||
{
|
||||
return lrint(feet * 304.8);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue