[svn-r9927] Purpose:

Bug fix #282

Description:
Problem with byte order

Solution:
Do it right.  See 1.6 checkin

Platforms tested:
verbena, shanti

Misc. update:
This commit is contained in:
Robert E. McGrath 2005-02-03 11:46:15 -05:00
parent 8af1385939
commit 3bf1bfa4ec

View File

@ -1866,6 +1866,16 @@ createOutputDataType(struct Input *in)
new_type = H5Tcopy (H5T_NATIVE_LLONG);
break;
}
switch(in->outputByteOrder)
{
case 0:
H5Tset_order (new_type,H5T_ORDER_BE);
break;
case 1:
H5Tset_order (new_type,H5T_ORDER_LE);
break;
}
break;
case 1: /* STD */
@ -1942,6 +1952,16 @@ createOutputDataType(struct Input *in)
new_type = H5Tcopy (H5T_NATIVE_DOUBLE);
break;
}
switch(in->outputByteOrder)
{
case 0:
H5Tset_order (new_type,H5T_ORDER_BE);
break;
case 1:
H5Tset_order (new_type,H5T_ORDER_LE);
break;
}
break;
case 1:
@ -2004,6 +2024,16 @@ createOutputDataType(struct Input *in)
new_type = H5Tcopy (H5T_NATIVE_ULLONG);
break;
}
switch(in->outputByteOrder)
{
case 0:
H5Tset_order (new_type,H5T_ORDER_BE);
break;
case 1:
H5Tset_order (new_type,H5T_ORDER_LE);
break;
}
break;
case 1: