Commit d52b7935 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix warning for implicit conversion.

parent 21fa9243
......@@ -626,7 +626,7 @@ void defineAttributes(int vlistID, int varID, int fileID, int ncvarID)
if ( atttype == DATATYPE_FLT32 )
{
float attflt_sp[len];
for ( size_t i = 0; i < len; ++i ) attflt_sp[i] = attflt[i];
for ( size_t i = 0; i < len; ++i ) attflt_sp[i] = (float)attflt[i];
cdf_put_att_float(fileID, ncvarID, attname, NC_FLOAT, len, attflt_sp);
}
else
......
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