Commit 219bf3a6 authored by Ralf Mueller's avatar Ralf Mueller
Browse files

fix compile error with gcc/g++ 5.3.0

parent a1e91d8d
...@@ -377,7 +377,7 @@ void *EOFs(void * argument) ...@@ -377,7 +377,7 @@ void *EOFs(void * argument)
npack = 0; npack = 0;
for ( i = 0; i < gridsize; ++i ) for ( i = 0; i < gridsize; ++i )
{ {
if ( !DBL_IS_EQUAL(weight[i], 0.0) && !DBL_IS_EQUAL(weight[i], missval) && if ( !DBL_IS_EQUAL(weight[i], 0) && !DBL_IS_EQUAL(weight[i], missval) &&
!DBL_IS_EQUAL(in[i], missval) ) !DBL_IS_EQUAL(in[i], missval) )
pack[npack++] = i; pack[npack++] = i;
} }
...@@ -392,7 +392,7 @@ void *EOFs(void * argument) ...@@ -392,7 +392,7 @@ void *EOFs(void * argument)
ipack = 0; ipack = 0;
for ( i = 0; i < gridsize; ++i ) for ( i = 0; i < gridsize; ++i )
{ {
if ( !DBL_IS_EQUAL(weight[i], 0.0) && !DBL_IS_EQUAL(weight[i], missval) && if ( !DBL_IS_EQUAL(weight[i], 0) && !DBL_IS_EQUAL(weight[i], missval) &&
!DBL_IS_EQUAL(in[i], missval) && pack[ipack++] != i ) !DBL_IS_EQUAL(in[i], missval) && pack[ipack++] != i )
{ {
cdoAbort("Missing values unsupported!"); cdoAbort("Missing values unsupported!");
......
Supports Markdown
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