diff options
author | Kimmy Mu <kmu@hdfgroup.org> | 2020-01-06 18:17:10 (GMT) |
---|---|---|
committer | kmu <kmu@hdfgroup.org> | 2020-01-09 22:15:38 (GMT) |
commit | de28f691ba42e295341ed1098caa1f3b980cc4eb (patch) | |
tree | 52a68c98d4e115da56c27a9310d7e112b82d04bd /tools/src | |
parent | e75b2e3c2c6e47ccb55dddc40822b41c57ff273d (diff) | |
download | hdf5-de28f691ba42e295341ed1098caa1f3b980cc4eb.zip hdf5-de28f691ba42e295341ed1098caa1f3b980cc4eb.tar.gz hdf5-de28f691ba42e295341ed1098caa1f3b980cc4eb.tar.bz2 |
merge intel warning fix
Diffstat (limited to 'tools/src')
-rw-r--r-- | tools/src/h5import/h5import.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/src/h5import/h5import.c b/tools/src/h5import/h5import.c index 1eef5ab..bd1689f 100644 --- a/tools/src/h5import/h5import.c +++ b/tools/src/h5import/h5import.c @@ -4707,14 +4707,14 @@ static int process(struct Options *opt) return (0); } -uint16_t swap_uint16( uint16_t val) +uint16_t swap_uint16(uint16_t val) { - return (val << 8) | (val >> 8); + return (uint16_t)((val << 8) | (val >> 8)); } int16_t swap_int16(int16_t val) { - return (val << 8) | ((val >> 8) & 0xFF); + return (int16_t)((val << 8) | ((val >> 8) & 0xFF)); } uint32_t swap_uint32(uint32_t val) |