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 /src/H5Tbit.c | |
parent | e75b2e3c2c6e47ccb55dddc40822b41c57ff273d (diff) | |
download | hdf5-de28f691ba42e295341ed1098caa1f3b980cc4eb.zip hdf5-de28f691ba42e295341ed1098caa1f3b980cc4eb.tar.gz hdf5-de28f691ba42e295341ed1098caa1f3b980cc4eb.tar.bz2 |
merge intel warning fix
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; } |