diff options
author | Robert E. McGrath <mcgrath@ncsa.uiuc.edu> | 2005-02-03 16:46:15 (GMT) |
---|---|---|
committer | Robert E. McGrath <mcgrath@ncsa.uiuc.edu> | 2005-02-03 16:46:15 (GMT) |
commit | 3bf1bfa4ec9988e038944b59fcaa8acc2d79f734 (patch) | |
tree | f40d3dbdbc5edf87c5c27789980cc63b63d15350 /tools/h5import | |
parent | 8af13859397ca1030dda5668017664692669d7e6 (diff) | |
download | hdf5-3bf1bfa4ec9988e038944b59fcaa8acc2d79f734.zip hdf5-3bf1bfa4ec9988e038944b59fcaa8acc2d79f734.tar.gz hdf5-3bf1bfa4ec9988e038944b59fcaa8acc2d79f734.tar.bz2 |
[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:
Diffstat (limited to 'tools/h5import')
-rwxr-xr-x | tools/h5import/h5import.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/h5import/h5import.c b/tools/h5import/h5import.c index ff1622d..d07745d 100755 --- a/tools/h5import/h5import.c +++ b/tools/h5import/h5import.c @@ -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: |