diff options
Diffstat (limited to 'vppinfra/vppinfra/heap.h')
-rw-r--r-- | vppinfra/vppinfra/heap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vppinfra/vppinfra/heap.h b/vppinfra/vppinfra/heap.h index c6605dac5f0..604187c00ea 100644 --- a/vppinfra/vppinfra/heap.h +++ b/vppinfra/vppinfra/heap.h @@ -194,7 +194,7 @@ uword heap_bytes (void * v); always_inline void * _heap_new (u32 len, u32 n_elt_bytes) { - void * v = _vec_resize (0, len, len*n_elt_bytes, + void * v = _vec_resize (0, len, (uword) len*n_elt_bytes, sizeof (heap_header_t), HEAP_DATA_ALIGN); heap_header (v)->elt_bytes = n_elt_bytes; |