summaryrefslogtreecommitdiffstats
path: root/tools/test/h5diff
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2019-12-06 20:12:57 (GMT)
committerkmu <kmu@hdfgroup.org>2019-12-06 20:12:57 (GMT)
commit189935ff260cae6fb4e061fa68bd7b93e219c635 (patch)
tree835e1ace051ca3cd146ee86b62b884a96fc04721 /tools/test/h5diff
parent132fa33dad6badacec90e80768d8dc8e8aa33172 (diff)
downloadhdf5-189935ff260cae6fb4e061fa68bd7b93e219c635.zip
hdf5-189935ff260cae6fb4e061fa68bd7b93e219c635.tar.gz
hdf5-189935ff260cae6fb4e061fa68bd7b93e219c635.tar.bz2
remove unnecessary check macro
Diffstat (limited to 'tools/test/h5diff')
-rw-r--r--tools/test/h5diff/dynlib_diff.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/test/h5diff/dynlib_diff.c b/tools/test/h5diff/dynlib_diff.c
index ceff5e1..661a6dc 100644
--- a/tools/test/h5diff/dynlib_diff.c
+++ b/tools/test/h5diff/dynlib_diff.c
@@ -16,7 +16,6 @@
#include <stdlib.h>
#include <stdio.h>
#include "H5PLextern.h"
-#include "H5private.h"
#define H5Z_FILTER_DYNLIBUD 300
#define MULTIPLIER 3
@@ -70,7 +69,7 @@ H5Z_filter_dynlibud(unsigned int flags, size_t cd_nelmts,
/* Subtract the original value with MULTIPLIER */
while(buf_left > 0) {
char temp = *int_ptr;
- H5_CHECKED_ASSIGN(*int_ptr, int8_t, temp - MULTIPLIER, int);
+ *int_ptr = (int8_t)(temp - MULTIPLIER);
int_ptr++;
buf_left -= sizeof(*int_ptr);
} /* end while */
@@ -79,7 +78,7 @@ H5Z_filter_dynlibud(unsigned int flags, size_t cd_nelmts,
/* Add the original value with MULTIPLIER */
while(buf_left > 0) {
char temp = *int_ptr;
- H5_CHECKED_ASSIGN(*int_ptr, int8_t, temp + MULTIPLIER, int);
+ *int_ptr = (int8_t)(temp + MULTIPLIER);
int_ptr++;
buf_left -= sizeof(*int_ptr);
} /* end while */