summaryrefslogtreecommitdiff
path: root/gvdb/gvdb-reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'gvdb/gvdb-reader.c')
-rw-r--r--gvdb/gvdb-reader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gvdb/gvdb-reader.c b/gvdb/gvdb-reader.c
index 73f4f13..264e87d 100644
--- a/gvdb/gvdb-reader.c
+++ b/gvdb/gvdb-reader.c
@@ -87,6 +87,7 @@ gvdb_table_setup_root (GvdbTable *file,
{
const struct gvdb_hash_header *header;
guint32 n_bloom_words;
+ guint32 bloom_shift;
guint32 n_buckets;
gsize size;
@@ -99,6 +100,7 @@ gvdb_table_setup_root (GvdbTable *file,
n_bloom_words = guint32_from_le (header->n_bloom_words);
n_buckets = guint32_from_le (header->n_buckets);
+ bloom_shift = n_bloom_words >> 27;
n_bloom_words &= (1u << 27) - 1;
if G_UNLIKELY (n_bloom_words * sizeof (guint32_le) > size)