Commit 4625495c authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix implicit narrowing in cdf_write_var_data.

parent 4b3b86b8
......@@ -3620,7 +3620,7 @@ cdf_write_var_data(int fileID, int vlistID, int varID, int ncvarid, int dtype, l
{
if ( laddoffset ) temp -= addoffset;
if ( lscalefactor ) temp /= scalefactor;
mdata_sp[i] = temp;
mdata_sp[i] = (float)temp;
}
}
}
......@@ -3631,7 +3631,7 @@ cdf_write_var_data(int fileID, int vlistID, int varID, int ncvarid, int dtype, l
double temp = mdata_sp[i];
if ( laddoffset ) temp -= addoffset;
if ( lscalefactor ) temp /= scalefactor;
mdata_sp[i] = temp;
mdata_sp[i] = (float)temp;
}
}
}
......
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