Commit bac712c7 authored by Ralf Mueller's avatar Ralf Mueller
Browse files

fix compile error with gcc/g++ 5.3.0 -

parent 219bf3a6
......@@ -377,7 +377,7 @@ void *EOFs(void * argument)
npack = 0;
for ( i = 0; i < gridsize; ++i )
{
if ( !DBL_IS_EQUAL(weight[i], 0) && !DBL_IS_EQUAL(weight[i], missval) &&
if ( !DBL_IS_EQUAL(weight[i], 0.0) && !DBL_IS_EQUAL(weight[i], missval) &&
!DBL_IS_EQUAL(in[i], missval) )
pack[npack++] = i;
}
......@@ -392,7 +392,7 @@ void *EOFs(void * argument)
ipack = 0;
for ( i = 0; i < gridsize; ++i )
{
if ( !DBL_IS_EQUAL(weight[i], 0) && !DBL_IS_EQUAL(weight[i], missval) &&
if ( !DBL_IS_EQUAL(weight[i], 0.0) && !DBL_IS_EQUAL(weight[i], missval) &&
!DBL_IS_EQUAL(in[i], missval) && pack[ipack++] != i )
{
cdoAbort("Missing values unsupported!");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment