From aec7b7dc700704ddfda31857a5aa18bfac323c45 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Mon, 22 Mar 1999 20:50:59 -0500 Subject: [svn-r1159] Changed cast of the reference selection type into a decode, this should fix the reference test problems on big-endian machines. --- src/H5Sselect.c | 8 +++++--- 1 file 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; -- cgit v0.12