From 9683c1eceb8529ef5133670efd4a465eb5a740c8 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Mon, 1 Jul 2019 09:42:41 -0400 Subject: api: fix coverity warnings New coverity toolset, new set of squawks to fix Ticket: VPP-1649 Type: fix Change-Id: I2a7e4c42b101c6c79c01b150b2523ce3d5d62354 Signed-off-by: Dave Barach --- src/vppinfra/cuckoo_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vppinfra') diff --git a/src/vppinfra/cuckoo_template.c b/src/vppinfra/cuckoo_template.c index 119a407962f..c48032a319c 100644 --- a/src/vppinfra/cuckoo_template.c +++ b/src/vppinfra/cuckoo_template.c @@ -169,7 +169,7 @@ void CV (clib_cuckoo_init) (CVT (clib_cuckoo) * h, const char *name, void *garbage_ctx) { uword log2_nbuckets = max_log2 (nbuckets); - nbuckets = 1 << (log2_nbuckets); + nbuckets = 1ULL << (log2_nbuckets); CLIB_CUCKOO_DBG ("New cuckoo, adjusted nbuckets %wu", nbuckets); CVT (clib_cuckoo_bucket) * buckets = NULL; vec_validate_aligned (buckets, nbuckets - 1, CLIB_CACHE_LINE_BYTES); -- cgit 1.2.3-korg