summaryrefslogtreecommitdiffstats
path: root/tools/src
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/src
parent132fa33dad6badacec90e80768d8dc8e8aa33172 (diff)
downloadhdf5-189935ff260cae6fb4e061fa68bd7b93e219c635.zip
hdf5-189935ff260cae6fb4e061fa68bd7b93e219c635.tar.gz
hdf5-189935ff260cae6fb4e061fa68bd7b93e219c635.tar.bz2
remove unnecessary check macro
Diffstat (limited to 'tools/src')
-rw-r--r--tools/src/h5import/h5import.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/src/h5import/h5import.c b/tools/src/h5import/h5import.c
index c627b6d..7ca12c2 100644
--- a/tools/src/h5import/h5import.c
+++ b/tools/src/h5import/h5import.c
@@ -4714,10 +4714,7 @@ uint16_t swap_uint16(uint16_t val)
int16_t swap_int16(int16_t val)
{
- int16_t ret;
-
- H5_CHECKED_ASSIGN(ret, int16_t, ((val & 0xff) << 8) | ((val & 0xff00) >> 8), int);
- return ret;
+ return (uint16_t)(((val & 0xff) << 8) | ((val & 0xff00) >> 8));
}
uint32_t swap_uint32(uint32_t val)