summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-11-23 12:01:36 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-11-23 12:01:36 (GMT)
commit31be2a676be3e1899fcd4cfce2050b7d555d6685 (patch)
tree14d3301d78024ccf699f5d47e4ea68f5cdacc14f /src
parent5913de51c2e84f78c80da224cc0437665fe6fcf4 (diff)
downloadhdf5-31be2a676be3e1899fcd4cfce2050b7d555d6685.zip
hdf5-31be2a676be3e1899fcd4cfce2050b7d555d6685.tar.gz
hdf5-31be2a676be3e1899fcd4cfce2050b7d555d6685.tar.bz2
[svn-r28445] Removed some code that checked to see if an unsigned value
was negative from H5Pset_append_flush() and the swmr.c test. Tested on Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 serial only
Diffstat (limited to 'src')
-rw-r--r--src/H5Pdapl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Pdapl.c b/src/H5Pdapl.c
index 41c6c78..9f7822e 100644
--- a/src/H5Pdapl.c
+++ b/src/H5Pdapl.c
@@ -829,8 +829,8 @@ H5Pset_append_flush(hid_t plist_id, unsigned ndims, const hsize_t *boundary, H5D
H5TRACE5("e", "iIu*hx*x", plist_id, ndims, boundary, func, udata);
/* Check arguments */
- if(ndims <= 0)
- HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "dimensionality cannot be negative or zero")
+ if(0 == ndims)
+ HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "dimensionality cannot be zero")
if(ndims > H5S_MAX_RANK)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "dimensionality is too large")
if(!boundary)