Change std::nan("") to proper nan constants
This commit is contained in:
parent
12a54251c9
commit
fed317f27b
10 changed files with 22 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue