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

Kurt Schwehr schwehr at gmail.com
Wed May 17 07:13:39 PDT 2017


+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?
>
> Thanks,
> -kurt
>
> https://trac.osgeo.org/gdal/changeset/38007
> "Message: Fix warnings about alteration of constant value"
>
>           if( dfDoubleRet > static_cast<double>(
>                                             std::numeric_limits<int>::max())
> ||
>               dfDoubleRet < static_cast<double>(
>                                             std::numeric_limits<int>::min())
> ||
>
>


-- 
--
http://schwehr.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170517/ef95f64e/attachment-0001.html>


More information about the gdal-dev mailing list