diff options
author | kmu <kmu@hdfgroup.org> | 2019-12-11 19:35:02 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:20:25 (GMT) |
commit | fd374fb23436970a04b37d4dde868fe428fcccaa (patch) | |
tree | 79276dfaaa9fb030c7b8066d53a1cf4db8a2e103 /tools/src | |
parent | 95e509db46c7007561a38fcfe76c38d91ea79e49 (diff) | |
download | hdf5-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.c | 2 |
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) |