summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/mem.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2020-10-07 09:37:36 -0400
committerDamjan Marion <dmarion@me.com>2020-10-08 06:10:16 +0000
commit27c35e30569c3904e977e7f841b8bc56f16aeb9f (patch)
tree4f37824acc98769d14f6a4c6e6c613deed5b5f0e /src/vppinfra/mem.h
parent6e366be38ff4f71d4ad5a24929519dc3c874ed36 (diff)
vppinfra: fix coverity warnings
Type: fix Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I654747d618cc4fe99b7774827303769fe43392ed
Diffstat (limited to 'src/vppinfra/mem.h')
-rw-r--r--src/vppinfra/mem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/mem.h b/src/vppinfra/mem.h
index a94b66ae187..ca8161abae5 100644
--- a/src/vppinfra/mem.h
+++ b/src/vppinfra/mem.h
@@ -543,7 +543,7 @@ clib_mem_log2_page_size_validate (clib_mem_page_sz_t log2_page_size)
static_always_inline uword
clib_mem_page_bytes (clib_mem_page_sz_t log2_page_size)
{
- return 1 << clib_mem_log2_page_size_validate (log2_page_size);
+ return 1ULL << clib_mem_log2_page_size_validate (log2_page_size);
}
static_always_inline clib_error_t *