summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2015-09-27 02:55:02 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2015-09-27 02:55:02 (GMT)
commitf45d7b4b7a784997c98c2b0ed0da2ab4575fe340 (patch)
treea2e421adf3b9d230f248fbe9f74476abbe0128ad
parent2fbf60fb900d6bcf7ac1a2bbf539396903b72edd (diff)
downloadhdf5-f45d7b4b7a784997c98c2b0ed0da2ab4575fe340.zip
hdf5-f45d7b4b7a784997c98c2b0ed0da2ab4575fe340.tar.gz
hdf5-f45d7b4b7a784997c98c2b0ed0da2ab4575fe340.tar.bz2
[svn-r27889] Description:
Advance the decoding pointer for 'all' and 'none' selections properly. Tested on: MacOSX/64 10.10.5 (amazon) w/serial & parallel (h5committest forthcoming)
-rw-r--r--src/H5Sall.c5
-rw-r--r--src/H5Snone.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/src/H5Sall.c b/src/H5Sall.c
index b8a39cc..702f765 100644
--- a/src/H5Sall.c
+++ b/src/H5Sall.c
@@ -559,7 +559,7 @@ H5S_all_serialize(const H5S_t *space, uint8_t **p)
REVISION LOG
--------------------------------------------------------------------------*/
static herr_t
-H5S_all_deserialize(H5S_t *space, const uint8_t H5_ATTR_UNUSED **p)
+H5S_all_deserialize(H5S_t *space, const uint8_t **p)
{
herr_t ret_value = SUCCEED; /* return value */
@@ -573,6 +573,9 @@ H5S_all_deserialize(H5S_t *space, const uint8_t H5_ATTR_UNUSED **p)
if(H5S_select_all(space, TRUE) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTDELETE, FAIL, "can't change selection")
+ /* Advance decoding pointer */
+ (*p) += 16;
+
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* H5S_all_deserialize() */
diff --git a/src/H5Snone.c b/src/H5Snone.c
index 19d5eed..fe8829f 100644
--- a/src/H5Snone.c
+++ b/src/H5Snone.c
@@ -541,6 +541,9 @@ H5S_none_deserialize(H5S_t *space, const uint8_t H5_ATTR_UNUSED **p)
if(H5S_select_none(space) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTDELETE, FAIL, "can't change selection")
+ /* Advance decoding pointer */
+ (*p) += 16;
+
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* H5S_none_deserialize() */