[PATCH 2/2] Write depth unit for current dive not previous

Robert Helling helling at atdotde.de
Sun Jan 25 07:21:52 PST 2015


> On 25 Jan 2015, at 15:47, Miika Turkia <miika.turkia at gmail.com> wrote:
> 
> The unit was stored to the variable after it was used, thus we need to
> delay the print of the unit slightly. (In practice the depth unit for
> first picture was null before this fix.)

Oh, C bit me here. I had assumed that function arguments are evaluated left to right.

Best
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150125/12fbc567/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150125/12fbc567/attachment.sig>


More information about the subsurface mailing list