diff options
author | kmu <kmu@hdfgroup.org> | 2019-12-06 20:12:57 (GMT) |
---|---|---|
committer | kmu <kmu@hdfgroup.org> | 2019-12-06 20:12:57 (GMT) |
commit | 189935ff260cae6fb4e061fa68bd7b93e219c635 (patch) | |
tree | 835e1ace051ca3cd146ee86b62b884a96fc04721 /test/dtypes.c | |
parent | 132fa33dad6badacec90e80768d8dc8e8aa33172 (diff) | |
download | hdf5-189935ff260cae6fb4e061fa68bd7b93e219c635.zip hdf5-189935ff260cae6fb4e061fa68bd7b93e219c635.tar.gz hdf5-189935ff260cae6fb4e061fa68bd7b93e219c635.tar.bz2 |
remove unnecessary check macro
Diffstat (limited to 'test/dtypes.c')
-rw-r--r-- | test/dtypes.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/dtypes.c b/test/dtypes.c index 93f56b8..6f59175 100644 --- a/test/dtypes.c +++ b/test/dtypes.c @@ -21,7 +21,6 @@ #include "testhdf5.h" #include "H5srcdir.h" #include "H5Iprivate.h" /* For checking that datatype id's don't leak */ -#include "H5private.h" /* Number of elements in each test */ #define NTESTELEM 100000 @@ -1217,8 +1216,8 @@ test_compound_6(void) orig = (unsigned char*)HDmalloc(nelmts * sizeof(struct st)); for (i=0; i<(int)nelmts; i++) { s_ptr = ((struct st*)((void *)orig)) + i; - H5_CHECKED_ASSIGN(s_ptr->b, int16_t, (i*8+1) & 0x7fff, int); - H5_CHECKED_ASSIGN(s_ptr->d, int16_t, (i*8+6) & 0x7fff, int); + s_ptr->b = (int16_t)((i*8+1) & 0x7fff); + s_ptr->d = (int16_t)((i*8+6) & 0x7fff); } HDmemcpy(buf, orig, nelmts*sizeof(struct st)); |