Commit 36e41372 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix implicit type conversion for cdiNcChunksizehint.

parent 3d1ce2ca
......@@ -102,7 +102,8 @@ int cdf_open(const char *path, int omode, int *ncidp)
/*
if ( chunksizehint < ChunkSizeMin ) chunksizehint = ChunkSizeMin;
*/
if ( cdiNcChunksizehint != CDI_UNDEFID ) chunksizehint = cdiNcChunksizehint;
if ( cdiNcChunksizehint != CDI_UNDEFID )
chunksizehint = (size_t)cdiNcChunksizehint;
/* FIXME: parallel part missing */
status = nc__open(path, omode, &chunksizehint, ncidp);
......
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