summaryrefslogtreecommitdiffstats
path: root/src/H5Dlayout.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2012-07-05 22:18:56 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2012-07-05 22:18:56 (GMT)
commit2d3bf69c7702de797cb8e82b9f836253836d0059 (patch)
tree5a45d557252f5d7496ee29672ef55a7a62436700 /src/H5Dlayout.c
parent35f98ad8b6612eb76e1f8d01ee42dd6527a82c48 (diff)
downloadhdf5-2d3bf69c7702de797cb8e82b9f836253836d0059.zip
hdf5-2d3bf69c7702de797cb8e82b9f836253836d0059.tar.gz
hdf5-2d3bf69c7702de797cb8e82b9f836253836d0059.tar.bz2
[svn-r22520] Made a few changes to error comparisons.
Tested on jam. This branch still has h5diff errors. The library tests all pass, though.
Diffstat (limited to 'src/H5Dlayout.c')
-rw-r--r--src/H5Dlayout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Dlayout.c b/src/H5Dlayout.c
index d463fde..e305660 100644
--- a/src/H5Dlayout.c
+++ b/src/H5Dlayout.c
@@ -483,7 +483,7 @@ H5D_layout_oh_create(H5F_t *file, hid_t dxpl_id, H5O_t *oh, H5D_t *dset,
HGOTO_ERROR(H5E_DATASET, H5E_CANTPROTECT, FAIL, "unable to protect EFL file name heap")
/* Insert "empty" name first */
- if((size_t)(-1) == H5HL_insert(file, dxpl_id, heap, (size_t)1, "")) {
+ if(UFAIL == H5HL_insert(file, dxpl_id, heap, (size_t)1, "")) {
H5HL_unprotect(heap);
HGOTO_ERROR(H5E_DATASET, H5E_CANTINSERT, FAIL, "unable to insert file name into heap")
} /* end if */
@@ -492,7 +492,7 @@ H5D_layout_oh_create(H5F_t *file, hid_t dxpl_id, H5O_t *oh, H5D_t *dset,
size_t offset; /* Offset of file name in heap */
/* Insert file name into heap */
- if((size_t)(-1) == (offset = H5HL_insert(file, dxpl_id, heap,
+ if(UFAIL == (offset = H5HL_insert(file, dxpl_id, heap,
HDstrlen(efl->slot[u].name) + 1, efl->slot[u].name))) {
H5HL_unprotect(heap);
HGOTO_ERROR(H5E_DATASET, H5E_CANTINSERT, FAIL, "unable to insert file name into heap")