Commit f0c500fc authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cleanup.

parent 1c08f3d5
......@@ -36,8 +36,7 @@ void cdfCopyRecord(stream_t *streamptr2, stream_t *streamptr1)
int datatype = vlistInqVarDatatype(vlistID1, ivarID);
int memtype = datatype != DATATYPE_FLT32 ? MEMTYPE_DOUBLE : MEMTYPE_FLOAT;
void *data
= Malloc((size_t)datasize
void *data = Malloc((size_t)datasize
* (memtype == MEMTYPE_DOUBLE ? sizeof(double) : sizeof(float)));
int nmiss;
......
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