diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2015-09-26 23:52:42 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2015-09-26 23:52:42 (GMT) |
commit | 8186a5cee10c41e97ba24b6fe1de9f6ce0c3902d (patch) | |
tree | ff9e92097542b930801522e1ce6c0ed5de72cecc /src/H5Sall.c | |
parent | aec3e1242d0d0f5c0fcbe796f2c2801c828e7efb (diff) | |
download | hdf5-8186a5cee10c41e97ba24b6fe1de9f6ce0c3902d.zip hdf5-8186a5cee10c41e97ba24b6fe1de9f6ce0c3902d.tar.gz hdf5-8186a5cee10c41e97ba24b6fe1de9f6ce0c3902d.tar.bz2 |
[svn-r27884] Description:
Update dataspace selection encode/decode routines to avoid type aliasing
errors.
Tested on:
Linux/64 2.6.x (platypus) w/production
(h5committest forthcoming)
Diffstat (limited to 'src/H5Sall.c')
-rw-r--r-- | src/H5Sall.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/H5Sall.c b/src/H5Sall.c index c373fd1..b8a39cc 100644 --- a/src/H5Sall.c +++ b/src/H5Sall.c @@ -512,19 +512,25 @@ H5S_all_serial_size (const H5S_t H5_ATTR_UNUSED *space) REVISION LOG --------------------------------------------------------------------------*/ static herr_t -H5S_all_serialize (const H5S_t *space, uint8_t **p) +H5S_all_serialize(const H5S_t *space, uint8_t **p) { + uint8_t *pp = (*p); /* Local pointer for decoding */ + FUNC_ENTER_NOAPI_NOINIT_NOERR + /* Check args */ HDassert(space); HDassert(p); - HDassert(*p); + HDassert(pp); /* Store the preamble information */ - UINT32ENCODE(*p, (uint32_t)H5S_GET_SELECT_TYPE(space)); /* Store the type of selection */ - UINT32ENCODE(*p, (uint32_t)1); /* Store the version number */ - UINT32ENCODE(*p, (uint32_t)0); /* Store the un-used padding */ - UINT32ENCODE(*p, (uint32_t)0); /* Store the additional information length */ + UINT32ENCODE(pp, (uint32_t)H5S_GET_SELECT_TYPE(space)); /* Store the type of selection */ + UINT32ENCODE(pp, (uint32_t)1); /* Store the version number */ + UINT32ENCODE(pp, (uint32_t)0); /* Store the un-used padding */ + UINT32ENCODE(pp, (uint32_t)0); /* Store the additional information length */ + + /* Update encoding pointer */ + *p = pp; FUNC_LEAVE_NOAPI(SUCCEED) } /* H5S_all_serialize() */ |