mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-11 09:18:20 +03:00
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
This commit is contained in:
parent
1673601510
commit
1f666eb07d
@ -246,7 +246,7 @@ ostree_bloom_set_bit (OstreeBloom *bloom,
|
|||||||
{
|
{
|
||||||
g_assert (bloom->is_mutable);
|
g_assert (bloom->is_mutable);
|
||||||
g_assert (idx / 8 < bloom->n_bytes);
|
g_assert (idx / 8 < bloom->n_bytes);
|
||||||
bloom->mutable_bytes[idx / 8] |= (1 << (idx % 8));
|
bloom->mutable_bytes[idx / 8] |= (guint8) (1 << (idx % 8));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user