summaryrefslogtreecommitdiffstats
path: root/src/H5Dfill.c
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2020-01-23 21:12:00 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:31:52 (GMT)
commit30e61cf0904697c256fb3236fab118d49e2722cf (patch)
tree187e1fc7c2f58121c2d94fc1543fb2a38e6049b1 /src/H5Dfill.c
parentcfd8856288232b1cd1e495ddfd4aba79d1f60422 (diff)
downloadhdf5-30e61cf0904697c256fb3236fab118d49e2722cf.zip
hdf5-30e61cf0904697c256fb3236fab118d49e2722cf.tar.gz
hdf5-30e61cf0904697c256fb3236fab118d49e2722cf.tar.bz2
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)))