Several float to int potential rounding errors/inconsistencies

Dirk Hohndel dirk at hohndel.org
Tue Mar 7 16:18:46 PST 2017


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


More information about the subsurface mailing list