Commit 33d19c1b authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cleanup.

parent b6608a78
Pipeline #5367 passed with stages
in 15 minutes and 45 seconds
......@@ -50,7 +50,7 @@ double
cdoZaxisInqLevel(int zaxisID, int levelID)
{
const auto zaxistype = zaxisInqType(zaxisID);
return zaxisInqLevels(zaxisID, nullptr) ? zaxisInqLevel(zaxisID, levelID) : (zaxistype == ZAXIS_SURFACE) ? 0 : levelID + 1;
return zaxisInqLevels(zaxisID, nullptr) ? zaxisInqLevel(zaxisID, levelID) : (zaxistype == ZAXIS_SURFACE) ? 0.0 : levelID + 1.0;
}
int
......@@ -68,7 +68,7 @@ cdoZaxisInqLevels(int zaxisID, double *levels)
if (size == 1 && zaxisInqType(zaxisID) == ZAXIS_SURFACE)
levels[0] = 0;
else
for (int i = 0; i < size; ++i) levels[i] = i + 1;
for (int i = 0; i < size; ++i) levels[i] = i + 1.0;
}
}
......
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