On 01 July, 2016 - Rick Walsh wrote: > Signed-off-by: Rick Walsh <[email protected]> > --- > core/dive.h | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/core/dive.h b/core/dive.h > index 5988990..6910eb2 100644 > --- a/core/dive.h > +++ b/core/dive.h > @@ -481,6 +481,17 @@ static inline depth_t gas_mod(struct gasmix *mix, > pressure_t po2_limit, struct d > return rounded_depth; > } > > +/* Maximum narcotic depth rounded to multiples of roundto mm */ > +static inline depth_t gas_mnd(struct gasmix *mix, int end, struct dive > *dive, int roundto) {
I'd prefer if both end and roundto were depth_t's instead of int. Simpler to know the unit instead of needing to look at the code. //Anton -- Anton Lundin +46702-161604 _______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
