summaryrefslogtreecommitdiffstats
path: root/vppinfra/vppinfra/sparse_vec.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-08-10 16:56:16 -0400
committerDave Barach <dave@barachs.net>2016-08-10 16:56:32 -0400
commitdd522cbaf421de7b34887fb8c33981c4ebca9201 (patch)
tree79dab4a6a205d683b77e21f92514923c952195e0 /vppinfra/vppinfra/sparse_vec.h
parent839fe3e6d65dbbd7cd102a22a7259d2556b7410a (diff)
VPP-189 Fix coverity warnings
Change-Id: Iea6d338e60a95f7f30c10c2e751d4827e816f700 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vppinfra/vppinfra/sparse_vec.h')
-rw-r--r--vppinfra/vppinfra/sparse_vec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vppinfra/vppinfra/sparse_vec.h b/vppinfra/vppinfra/sparse_vec.h
index 08e97f352a9..bf18ebd9e9b 100644
--- a/vppinfra/vppinfra/sparse_vec.h
+++ b/vppinfra/vppinfra/sparse_vec.h
@@ -87,7 +87,7 @@ sparse_vec_new (uword elt_bytes, uword sparse_index_bits)
n = sparse_index_bits - min_log2 (BITS (uword));
if (n < 0)
n = 0;
- n = 1 << n;
+ n = 1ULL << n;
vec_resize (h->is_member_bitmap, n);
vec_resize (h->member_counts, n);