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:
Berthold Stoeger 2022-01-02 18:47:48 +01:00 committed by Dirk Hohndel
parent 4f1034b605
commit efab955d85

View file

@ -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);
}