diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-06-18 21:03:30 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-06-18 21:03:30 (GMT) |
commit | 23465486edeb6e9d76ae795d523bedbf4e665d64 (patch) | |
tree | 3831eaca941ba6521cd31463bfdcb8739805bb3a /test/dtypes.c | |
parent | d6f7fda058353212449fce012787d0d46d866f2f (diff) | |
download | hdf5-23465486edeb6e9d76ae795d523bedbf4e665d64.zip hdf5-23465486edeb6e9d76ae795d523bedbf4e665d64.tar.gz hdf5-23465486edeb6e9d76ae795d523bedbf4e665d64.tar.bz2 |
[svn-r432] Changes since 19980617
----------------------
./html/Datatypes.html
./src/H5T.c
./src/H5Tconv.c
./src/H5Tpkg.h
./src/H5Tpublic.h
./src/H5detect.c
./test/cmpd_dset.c
./test/dsets.c
./test/dtypes.c
./test/external.c
./test/tattr.c
./test/th5s.c
Organized the predefined data types.
./html/H5.intro.html
NO MODIFICATIONS! This file is a mess (obviously generated
from something else) so I skipped updating it!
./src/h5ls.c
./test/dsets.c
./test/tattr.c
./test/th5s.c
Added extra argument to H5Sget_dims() calls per Albert's last
update.
Diffstat (limited to 'test/dtypes.c')
-rw-r--r-- | test/dtypes.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/dtypes.c b/test/dtypes.c index f60efd7..1bc58f5 100644 --- a/test/dtypes.c +++ b/test/dtypes.c @@ -534,7 +534,7 @@ test_conv_num (void) /* (unsigned)0x80000000 -> (unsigned)0xffff */ byte[0] = byte[1] = byte[2] = 0; byte[3] = 0x80; - if (H5Tconvert (H5T_NATIVE_UINT32, H5T_NATIVE_UINT16, 1, byte, NULL)<0) { + if (H5Tconvert (H5T_STD_U32LE, H5T_STD_U16LE, 1, byte, NULL)<0) { goto error; } if (byte[0]!=0xff || byte[1]!=0xff) { @@ -545,7 +545,7 @@ test_conv_num (void) /* (unsigned)0xffffffff -> (signed)0x7fff */ byte[0] = byte[1] = byte[2] = byte[3] = 0xff; - if (H5Tconvert (H5T_NATIVE_UINT32, H5T_NATIVE_INT16, 1, byte, NULL)<0) { + if (H5Tconvert (H5T_STD_U32LE, H5T_STD_I16LE, 1, byte, NULL)<0) { goto error; } if (byte[0]!=0xff || byte[1]!=0x7f) { @@ -556,7 +556,7 @@ test_conv_num (void) /* (signed)0xffffffff -> (unsigned)0x0000 */ byte[0] = byte[1] = byte[2] = byte[3] = 0xff; - if (H5Tconvert (H5T_NATIVE_INT32, H5T_NATIVE_UINT16, 1, byte, NULL)<0) { + if (H5Tconvert (H5T_STD_I32LE, H5T_STD_U16LE, 1, byte, NULL)<0) { goto error; } if (byte[0]!=0x00 || byte[1]!=0x00) { @@ -568,7 +568,7 @@ test_conv_num (void) /* (signed)0x7fffffff -> (unsigned)0xffff */ byte[0] = byte[1] = byte[2] = 0xff; byte[3] = 0x7f; - if (H5Tconvert (H5T_NATIVE_INT32, H5T_NATIVE_UINT16, 1, byte, NULL)<0) { + if (H5Tconvert (H5T_STD_I32LE, H5T_STD_U16LE, 1, byte, NULL)<0) { goto error; } if (byte[0]!=0xff || byte[1]!=0xff) { @@ -580,7 +580,7 @@ test_conv_num (void) /* (signed)0x7fffffff -> (signed)0x7fff */ byte[0] = byte[1] = byte[2] = 0xff; byte[3] = 0x7f; - if (H5Tconvert (H5T_NATIVE_INT32, H5T_NATIVE_INT16, 1, byte, NULL)<0) { + if (H5Tconvert (H5T_STD_I32LE, H5T_STD_I16LE, 1, byte, NULL)<0) { goto error; } if (byte[0]!=0xff || byte[1]!=0x7f) { @@ -592,7 +592,7 @@ test_conv_num (void) /* (signed)0xbfffffff -> (signed)0x8000 */ byte[0] = byte[1] = byte[2] = 0xff; byte[3] = 0xbf; - if (H5Tconvert (H5T_NATIVE_INT32, H5T_NATIVE_INT16, 1, byte, NULL)<0) { + if (H5Tconvert (H5T_STD_I32LE, H5T_STD_I16LE, 1, byte, NULL)<0) { goto error; } if (byte[0]!=0x00 || byte[1]!=0x80) { @@ -622,9 +622,9 @@ test_conv_num (void) memcpy (saved, buf, nelmts*sizeof(int)); /* Convert there and back */ - if (H5Tconvert (H5T_NATIVE_INT, H5T_IEEE_S64LE, nelmts, buf, + if (H5Tconvert (H5T_NATIVE_INT, H5T_STD_I64LE, nelmts, buf, NULL)<0) goto error; - if (H5Tconvert (H5T_IEEE_S64LE, H5T_NATIVE_INT, nelmts, buf, + if (H5Tconvert (H5T_STD_I64LE, H5T_NATIVE_INT, nelmts, buf, NULL)<0) goto error; /* Check results */ |