From 2105bd535f49c2861297b6cc6de6cd6c4ba46ebc Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Thu, 21 Jun 2007 10:43:57 +0200 Subject: [PATCH] fixed few compilation warnings --- lib/qache.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/qache.c b/lib/qache.c index eeea2b6b..acf0bb1e 100644 --- a/lib/qache.c +++ b/lib/qache.c @@ -331,7 +331,7 @@ qache_create(struct qache *q, struct qache_params *par) bwrite(fb, &h, sizeof(h)); /* Entry #0: heads of all lists */ - ASSERT(btell(fb) == h.entry_table_start); + ASSERT(btell(fb) == (sh_off_t)h.entry_table_start); struct qache_entry ent; bzero(&ent, sizeof(ent)); ent.first_data_block = h.first_data_block; @@ -349,18 +349,18 @@ qache_create(struct qache *q, struct qache_params *par) } /* The hash table */ - ASSERT(btell(fb) == h.hash_table_start); + ASSERT(btell(fb) == (sh_off_t)h.hash_table_start); for (uns i=0; icache_size); + ASSERT(btell(fb) == (sh_off_t)par->cache_size); bclose(fb); log(L_INFO, "Cache %s: created (%d bytes, %d slots, %d buckets)", q->file_name, par->cache_size, h.max_entries, h.hash_size); -- 2.39.2