[svn-r1159] Changed cast of the reference selection type into a decode, this should fix

the reference test problems on big-endian machines.
This commit is contained in:
Quincey Koziol 1999-03-22 20:50:59 -05:00
parent 39880ddfdf
commit aec7b7dc70

View File

@ -1100,15 +1100,17 @@ H5S_select_serialize (const H5S_t *space, uint8_t *buf)
herr_t herr_t
H5S_select_deserialize (H5S_t *space, const uint8_t *buf) 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 */ herr_t ret_value=FAIL; /* return value */
FUNC_ENTER (H5S_select_deserialize, FAIL); FUNC_ENTER (H5S_select_deserialize, FAIL);
assert(space); assert(space);
sel_type=(const uint32_t *)buf; tbuf=buf;
switch(*sel_type) { UINT32DECODE(tbuf, sel_type);
switch(sel_type) {
case H5S_SEL_POINTS: /* Sequence of points selected */ case H5S_SEL_POINTS: /* Sequence of points selected */
ret_value=H5S_point_select_deserialize(space,buf); ret_value=H5S_point_select_deserialize(space,buf);
break; break;