cmdl-tool #45

Merged
Gregor Weiss merged 21 commits from cmdl-tool into feat/api 2024-11-07 15:40:29 +00:00
Showing only changes of commit 64eeda9072 - Show all commits

View file

@ -401,13 +401,13 @@ bwc_to_eas3(bwc_stream *const stream, eas3_data *const data)
{ {
data->field.d = NULL; data->field.d = NULL;
data->field.f = calloc(size, sizeof(float)); data->field.f = calloc(size, sizeof(float));
memcpy(data->field.f, stream->out, size); memcpy(data->field.f, stream->out, size*sizeof(float));
} }
else if(params->accuracy == 2) else if(params->accuracy == 2)
{ {
data->field.f = NULL; data->field.f = NULL;
data->field.d = calloc(size, sizeof(double)); data->field.d = calloc(size, sizeof(double));
memcpy(data->field.d, stream->out, size); memcpy(data->field.d, stream->out, size*sizeof(double));
} }
return 0; return 0;