summaryrefslogtreecommitdiffstats
path: root/tools/src
diff options
context:
space:
mode:
authorkmu <kmu@jelly.ad.hdfgroup.org>2019-11-07 20:34:13 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:20:23 (GMT)
commit6725222332ded4dd7324f61a73299d889a4ae571 (patch)
tree3092f832d185062f062347b172104ad0b95b17cf /tools/src
parentd1d4635550d989a887db98791213c455894b48eb (diff)
downloadhdf5-6725222332ded4dd7324f61a73299d889a4ae571.zip
hdf5-6725222332ded4dd7324f61a73299d889a4ae571.tar.gz
hdf5-6725222332ded4dd7324f61a73299d889a4ae571.tar.bz2
fix warnings from Intel compiler
Diffstat (limited to 'tools/src')
-rw-r--r--tools/src/h5import/h5import.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/src/h5import/h5import.c b/tools/src/h5import/h5import.c
index 1eef5ab..40b812f 100644
--- a/tools/src/h5import/h5import.c
+++ b/tools/src/h5import/h5import.c
@@ -4709,12 +4709,12 @@ static int process(struct Options *opt)
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 (uint16_t)((val << 8) | ((val >> 8) & 0xFF));
}
uint32_t swap_uint32(uint32_t val)