Change std::nan("") to proper nan constants

This commit is contained in:
tamasmeszaros 2022-05-09 13:11:01 +02:00
parent 12a54251c9
commit fed317f27b
10 changed files with 22 additions and 16 deletions

View file

@ -386,7 +386,7 @@ long raster_pxsum(const sla::RasterGrayscaleAA &raster)
double raster_white_area(const sla::RasterGrayscaleAA &raster)
{
if (raster.resolution().pixels() == 0) return std::nan("");
if (raster.resolution().pixels() == 0) return NaNd;
auto res = raster.resolution();
double a = 0;