diff options
author | Philip Withnall <withnall@endlessm.com> | 2017-10-01 00:13:17 +0100 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-10-01 12:24:46 +0000 |
commit | 1f666eb07dfc994e1459d4c07b54bc857b961f49 (patch) | |
tree | 7895097b03df0b9f43b33da0211ce44836e090c3 /src/libostree/ostree-bloom.c | |
parent | 1673601510da20b132bcc3fd17d6e0cc9bf837dd (diff) | |
download | ostree-1f666eb07dfc994e1459d4c07b54bc857b961f49.tar.gz |
lib/bloom: Fix a -Wconversion warning in OstreeBloom
Compiling with -Wconversion warns on this line, as the conversion from
guint64 to guint8 is implicit (but safe: there is no bug here, since the
implicit cast is applied after the modulus arithmetic).
Make the cast explicit to silence -Wconversion.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1231
Approved by: cgwalters
Diffstat (limited to 'src/libostree/ostree-bloom.c')
-rw-r--r-- | src/libostree/ostree-bloom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libostree/ostree-bloom.c b/src/libostree/ostree-bloom.c index 8defb176..9bd2ad28 100644 --- a/src/libostree/ostree-bloom.c +++ b/src/libostree/ostree-bloom.c @@ -246,7 +246,7 @@ ostree_bloom_set_bit (OstreeBloom *bloom, { g_assert (bloom->is_mutable); g_assert (idx / 8 < bloom->n_bytes); - bloom->mutable_bytes[idx / 8] |= (1 << (idx % 8)); + bloom->mutable_bytes[idx / 8] |= (guint8) (1 << (idx % 8)); } /** |