lib/bloom: Add some missing preconditions on n_bytes
authorPhilip Withnall <withnall@endlessm.com>
Mon, 2 Oct 2017 17:04:37 +0000 (18:04 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 2 Oct 2017 18:08:55 +0000 (18:08 +0000)
commit030e3efbc41f1f4f8d3fd2c64da235869b0f6f0b
tree3c0e8525389cf68969cc50c21072e4086ba1e510
parent9fffc27cfb8b01d8edb13649324b628634a9b940
lib/bloom: Add some missing preconditions on n_bytes

These shouldn’t change the bloom filter’s behaviour at all, but make it
a bit more obvious what the programmatical limitations are on the sizes
it can deal with.

In reality, those sizes should never be reached because they won’t fit
in a DNS-SD record.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1239
Approved by: cgwalters
src/libostree/ostree-bloom.c