From 6440b7a602fdeb41674911cc3baf0b39a7521b96 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Wed, 22 Apr 2020 08:01:52 -0400 Subject: misc: fix coverity warnings Type: fix Ticket: VPP-1837 Signed-off-by: Dave Barach Change-Id: I9ec87d2293d8f92c3e488a0f61083cf815ac496c --- src/vppinfra/linux/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vppinfra') diff --git a/src/vppinfra/linux/mem.c b/src/vppinfra/linux/mem.c index d86402a9b16..5826a6a7e49 100644 --- a/src/vppinfra/linux/mem.c +++ b/src/vppinfra/linux/mem.c @@ -347,7 +347,7 @@ clib_mem_vm_ext_free (clib_mem_vm_alloc_t * a) uword clib_mem_vm_reserve (uword start, uword size, u32 log2_page_sz) { - uword off, pagesize = 1 << log2_page_sz; + uword off, pagesize = 1ULL << log2_page_sz; int mmap_flags = MAP_PRIVATE | MAP_ANONYMOUS; u8 *p; -- cgit 1.2.3-korg