diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1999-03-23 01:50:59 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1999-03-23 01:50:59 (GMT) |
commit | aec7b7dc700704ddfda31857a5aa18bfac323c45 (patch) | |
tree | 1b150e25edc6d7e4b16f221f4bc424844764abbd /src/H5Sselect.c | |
parent | 39880ddfdfe44812deaee20e8d4ae45a4b36025c (diff) | |
download | hdf5-aec7b7dc700704ddfda31857a5aa18bfac323c45.zip hdf5-aec7b7dc700704ddfda31857a5aa18bfac323c45.tar.gz hdf5-aec7b7dc700704ddfda31857a5aa18bfac323c45.tar.bz2 |
[svn-r1159] Changed cast of the reference selection type into a decode, this should fix
the reference test problems on big-endian machines.
Diffstat (limited to 'src/H5Sselect.c')
-rw-r--r-- | src/H5Sselect.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/H5Sselect.c b/src/H5Sselect.c index 20e2bc0..084c578 100644 --- a/src/H5Sselect.c +++ b/src/H5Sselect.c @@ -1100,15 +1100,17 @@ H5S_select_serialize (const H5S_t *space, uint8_t *buf) herr_t H5S_select_deserialize (H5S_t *space, const uint8_t *buf) { - const uint32_t *sel_type; /* Pointer to the selection type */ + const uint8_t *tbuf; /* Temporary pointer to the selection type */ + uint32_t sel_type; /* Pointer to the selection type */ herr_t ret_value=FAIL; /* return value */ FUNC_ENTER (H5S_select_deserialize, FAIL); assert(space); - sel_type=(const uint32_t *)buf; - switch(*sel_type) { + tbuf=buf; + UINT32DECODE(tbuf, sel_type); + switch(sel_type) { case H5S_SEL_POINTS: /* Sequence of points selected */ ret_value=H5S_point_select_deserialize(space,buf); break; |