diff options
author | kmu <kmu@jelly.ad.hdfgroup.org> | 2019-11-07 20:34:13 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:20:23 (GMT) |
commit | 6725222332ded4dd7324f61a73299d889a4ae571 (patch) | |
tree | 3092f832d185062f062347b172104ad0b95b17cf /src/H5Tbit.c | |
parent | d1d4635550d989a887db98791213c455894b48eb (diff) | |
download | hdf5-6725222332ded4dd7324f61a73299d889a4ae571.zip hdf5-6725222332ded4dd7324f61a73299d889a4ae571.tar.gz hdf5-6725222332ded4dd7324f61a73299d889a4ae571.tar.bz2 |
fix warnings from Intel compiler
Diffstat (limited to 'src/H5Tbit.c')
-rw-r--r-- | src/H5Tbit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Tbit.c b/src/H5Tbit.c index df6d2c3..c6c1777 100644 --- a/src/H5Tbit.c +++ b/src/H5Tbit.c @@ -363,7 +363,7 @@ H5T__bit_set(uint8_t *buf, size_t offset, size_t size, hbool_t value) /* The middle bytes */ while (size >= 8) { - buf[idx++] = value ? 0xff : 0x00; + buf[idx++] = (uint8_t)(value ? 0xff : 0x00); size -= 8; } @@ -532,7 +532,7 @@ H5T__bit_inc(uint8_t *buf, size_t start, size_t size) acc = buf[idx]; acc++; carry = acc & 0x100; - buf[idx] = acc & 0xff; + buf[idx] = (uint8_t)(acc & 0xff); idx++; size -= 8; } |