X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=rculfhash.c;h=ca63457b7237288a8b7816efef9bed1aa9c2c3a3;hb=eb631bf261cb0dad1db55ecb8fdda0fe761cf0c9;hp=1f6ee71f39ddb05242d87a6b5c744144c7021c98;hpb=ef6e6171a5046d56c3f4a32abcf3436546977118;p=urcu.git diff --git a/rculfhash.c b/rculfhash.c index 1f6ee71..ca63457 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -1284,7 +1284,7 @@ void cds_lfht_create_dummy(struct cds_lfht *ht, unsigned long size) for (order = 1; order < get_count_order_ulong(size) + 1; order++) { len = 1UL << (order - 1); if (order <= ht->min_alloc_order) { - ht->t.tbl[order] = (void *)(ht->t.tbl[0]->nodes + len); + ht->t.tbl[order] = (struct rcu_level *) (ht->t.tbl[0]->nodes + len); } else { ht->t.tbl[order] = calloc(1, len * sizeof(struct _cds_lfht_node)); assert(ht->t.tbl[order]);