diff options
author | Dave Barach <dave@barachs.net> | 2018-11-14 11:42:03 -0500 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-11-15 17:22:25 +0000 |
commit | 96e2d4407b1538d8df4e277ba33b85876589e198 (patch) | |
tree | c2bf00143407fc2e8c07e9d779a4bcb5bd81d0dd /src/vppinfra/pmalloc.c | |
parent | bdcff0327db0ad680906462cdf955d5ae5191c69 (diff) |
VPP-1474: fix 2x coverity warnings
Change-Id: I441beaf3d7f57886580d7cce35ef592aa0fcca5f
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vppinfra/pmalloc.c')
-rw-r--r-- | src/vppinfra/pmalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/pmalloc.c b/src/vppinfra/pmalloc.c index e11d27ef77b..b707336bfbd 100644 --- a/src/vppinfra/pmalloc.c +++ b/src/vppinfra/pmalloc.c @@ -212,7 +212,7 @@ pmalloc_update_lookup_table (clib_pmalloc_main_t * pm, u32 first, u32 count) vec_validate_aligned (pm->lookup_table, vec_len (pm->pages) * elts_per_page - 1, CLIB_CACHE_LINE_BYTES); - p = first * elts_per_page; + p = (uword) first *elts_per_page; if (pm->flags & CLIB_PMALLOC_F_NO_PAGEMAP) { while (p < (uword) elts_per_page * count) |