Several float to int potential rounding errors/inconsistencies

Jérémie Guichard djeBrest at gmail.com
Tue Mar 7 18:21:01 PST 2017


I'm looking into that right now :)

2017-03-08 7:18 GMT+07:00 Dirk Hohndel <dirk at hohndel.org>:

> On Tue, Mar 07, 2017 at 09:43:06AM -0800, Linus Torvalds wrote:
> > On Tue, Mar 7, 2017 at 9:20 AM, Lubomir I. Ivanov <neolit123 at gmail.com>
> wrote:
> > >
> > > lrint() seems to build for me with mingw 4.9.2.
> >
> > .. in fact, I notice that we had a couple of places in the GPS
> > coordinates code that already used 'lrint()', so it must work.
> >
> > The uemis code has a few places that use 'round()' instead of rint() -
> > those should probably be converted to 'lrint()' as well.
>
> Would you be willing to run the script, make the other changes you
> suggest, and send a patch / pull request?
>
> I'm really swamped this week.
>
> /D
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20170308/223f17fa/attachment.html>


More information about the subsurface mailing list