summaryrefslogtreecommitdiffstats
path: root/tools/src
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2019-12-11 19:35:02 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:20:25 (GMT)
commitfd374fb23436970a04b37d4dde868fe428fcccaa (patch)
tree79276dfaaa9fb030c7b8066d53a1cf4db8a2e103 /tools/src
parent95e509db46c7007561a38fcfe76c38d91ea79e49 (diff)
downloadhdf5-fd374fb23436970a04b37d4dde868fe428fcccaa.zip
hdf5-fd374fb23436970a04b37d4dde868fe428fcccaa.tar.gz
hdf5-fd374fb23436970a04b37d4dde868fe428fcccaa.tar.bz2
address problems from comments
Diffstat (limited to 'tools/src')
-rw-r--r--tools/src/h5import/h5import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/src/h5import/h5import.c b/tools/src/h5import/h5import.c
index f2e264c..bd1689f 100644
--- a/tools/src/h5import/h5import.c
+++ b/tools/src/h5import/h5import.c
@@ -4714,7 +4714,7 @@ uint16_t swap_uint16(uint16_t val)
int16_t swap_int16(int16_t val)
{
- return (uint16_t)((val << 8) | ((val >> 8) & 0xFF));
+ return (int16_t)((val << 8) | ((val >> 8) & 0xFF));
}
uint32_t swap_uint32(uint32_t val)