Skip to content
Snippets Groups Projects
Commit ece95ed2 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Remove redundant clamping.

* The ternary above already ensures that datatype only takes values
  from the interval [1,32].
parent 3af0a03a
No related branches found
No related tags found
2 merge requests!91Add alternative code path for huge buffers.,!89Miscellaneous fixes and CDI-PIO improvements
......@@ -554,8 +554,6 @@ cgribexAddRecord(stream_t *streamptr, cgribexrec_t *cgribexp, int param, size_t
double *fsec3 = cgribexp->fsec3;
int datatype = (ISEC4_NumBits > 0 && ISEC4_NumBits <= 32) ? ISEC4_NumBits : CDI_DATATYPE_PACK;
if (datatype > 32) datatype = CDI_DATATYPE_PACK32;
if (datatype < 0) datatype = CDI_DATATYPE_PACK;
int vlistID = streamptr->vlistID;
int tsID = streamptr->curTsID;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment