summaryrefslogtreecommitdiffstats
path: root/src/H5Znbit.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2008-05-19 04:34:02 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2008-05-19 04:34:02 (GMT)
commit2adc43f81221954e16da3338445323f1e4d958ad (patch)
tree351ed14f7469382748a18237512c41def64233bb /src/H5Znbit.c
parent12c5e315c5090f32e0683b588ab3b8a2327da948 (diff)
downloadhdf5-2adc43f81221954e16da3338445323f1e4d958ad.zip
hdf5-2adc43f81221954e16da3338445323f1e4d958ad.tar.gz
hdf5-2adc43f81221954e16da3338445323f1e4d958ad.tar.bz2
[svn-r15034] Description:
Correct another case of using 'size_t' for chunk sizes where 'uint32_t' was necessary. Tested on: FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN
Diffstat (limited to 'src/H5Znbit.c')
-rw-r--r--src/H5Znbit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Znbit.c b/src/H5Znbit.c
index 1b9265d..2423654 100644
--- a/src/H5Znbit.c
+++ b/src/H5Znbit.c
@@ -439,7 +439,7 @@ H5Z_set_parms_atomic(const H5T_t *type, unsigned cd_values[])
int dtype_offset; /* Atomic datatype's offset (in bits) */
herr_t ret_value = SUCCEED; /* Return value */
- FUNC_ENTER_NOAPI(H5Z_set_parms_atomic, FAIL)
+ FUNC_ENTER_NOAPI_NOINIT(H5Z_set_parms_atomic)
/* Set datatype class code */
cd_values[cd_values_index++] = H5Z_NBIT_ATOMIC;
@@ -799,6 +799,7 @@ H5Z_set_local_nbit(hid_t dcpl_id, hid_t type_id, hid_t space_id)
/* Get total number of elements in the chunk */
if((npoints = H5S_GET_EXTENT_NPOINTS(ds)) < 0)
HGOTO_ERROR(H5E_PLINE, H5E_CANTGET, FAIL, "unable to get number of points in the dataspace")
+ HDassert(npoints);
/* Initialize index for cd_values array starting from the third entry */
cd_values_index = 2;