summaryrefslogtreecommitdiffstats
path: root/tools/src/h5import
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2019-12-11 19:35:02 (GMT)
committerkmu <kmu@hdfgroup.org>2019-12-11 19:35:02 (GMT)
commit0a2bb11b248df6841daabca3970df5d8504adfc7 (patch)
tree5c431dcf2a63c852126b6d537f13b02c249d26fb /tools/src/h5import
parent45a62b2d46523c15a7d2bc7f52db2b756b40df26 (diff)
downloadhdf5-0a2bb11b248df6841daabca3970df5d8504adfc7.zip
hdf5-0a2bb11b248df6841daabca3970df5d8504adfc7.tar.gz
hdf5-0a2bb11b248df6841daabca3970df5d8504adfc7.tar.bz2
address problems from comments
Diffstat (limited to 'tools/src/h5import')
-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)