summaryrefslogtreecommitdiffstats
path: root/src/H5Dfill.c
diff options
context:
space:
mode:
authorKimmy Mu <kmu@hdfgroup.org>2020-01-23 22:21:06 (GMT)
committerkmu <kmu@hdfgroup.org>2020-01-28 02:47:06 (GMT)
commitfe75e8f66f79c16d083d80ccdca303f267e96745 (patch)
tree345d20f70d273b8512aa6cf309a72d7c7b441ab4 /src/H5Dfill.c
parentb87a4362a12428613c2b8bd3ba2aa33828b4d5af (diff)
downloadhdf5-fe75e8f66f79c16d083d80ccdca303f267e96745.zip
hdf5-fe75e8f66f79c16d083d80ccdca303f267e96745.tar.gz
hdf5-fe75e8f66f79c16d083d80ccdca303f267e96745.tar.bz2
Merge pull request #2300 in HDFFV/hdf5 from ~KMU/hdf5:squashed_cast to develop
* commit 'af5c33afabdae2e39bb45eb1b3e9c8366da01145': remove unnecessary stuff squash cast warning fix
Diffstat (limited to 'src/H5Dfill.c')
-rw-r--r--src/H5Dfill.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/H5Dfill.c b/src/H5Dfill.c
index 3ccee90..f5a5238 100644
--- a/src/H5Dfill.c
+++ b/src/H5Dfill.c
@@ -249,12 +249,11 @@ H5D__fill(const void *fill, const H5T_t *fill_type, void *buf,
* of the VL data.
*/
if(TRUE == H5T_detect_class(fill_type, H5T_VLEN, FALSE)) {
- hssize_t nelmts; /* Number of data elements */
+ hsize_t nelmts; /* Number of data elements */
/* Get the number of elements in the selection */
nelmts = H5S_GET_SELECT_NPOINTS(space);
- HDassert(nelmts >= 0);
- H5_CHECK_OVERFLOW(nelmts, hssize_t, size_t);
+ H5_CHECK_OVERFLOW(nelmts, hsize_t, size_t);
/* Allocate a temporary buffer */
if(NULL == (tmp_buf = H5FL_BLK_MALLOC(type_conv, (size_t)nelmts * buf_size)))