[gdal-dev] What warnings in r38007 require casting int const to double?

Kurt Schwehr schwehr at gmail.com
Wed May 17 07:50:23 PDT 2017


Ok. I will try reverting just those casts today and if it break travis, I
will put them back with a comment as to why

On May 17, 2017 7:34 AM, "Even Rouault" <even.rouault at spatialys.com> wrote:

> On mercredi 17 mai 2017 07:13:39 CEST Kurt Schwehr wrote:
>
> > +gdal-dev
>
> >
>
> > On Wed, May 17, 2017 at 7:12 AM, Kurt Schwehr <schwehr at gmail.com> wrote:
>
> > > Hi Even,
>
> > >
>
> > > Do you remember what warning by which compiler with this changeset?
>
>
>
> Hum of course not :-) It might be some older compiler/distribution I
> tested before releasing 2.2.
>
>
>
> I don't see indeed in the part you quote below why a compiler would
> complain.
>
>
>
> But in the changeset the change related to GUIntBig is legitimate since
> big values of 64 bit integers cannot be exactly represented as a 64 bit
> double.
>
>
>
> Even
>
>
>
> --
>
> Spatialys - Geospatial professional services
>
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170517/a8f349c9/attachment.html>


More information about the gdal-dev mailing list