diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-19 18:52:23 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-19 18:52:23 -0700 |
commit | 2a45f6dbc3aa9bef7832e63e30076eff704153c9 (patch) | |
tree | 571fbe1aa1dedceefba34f59317e8c14ece11cfe /dive.h | |
parent | fa2a6fb7639ea09c1571a7f8da9915ee1f9ab1eb (diff) | |
download | subsurface-2a45f6dbc3aa9bef7832e63e30076eff704153c9.tar.gz |
Use renderer function for divelist depth field too
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -86,9 +86,14 @@ typedef struct { pressure_t start, end; } cylinder_t; +static inline double mm_to_feet(int mm) +{ + return mm * 0.00328084; +} + static inline int to_feet(depth_t depth) { - return depth.mm * 0.00328084 + 0.5; + return mm_to_feet(depth.mm) + 0.5; } static double mkelvin_to_C(int mkelvin) |