X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fheap.h;h=70e34cb4eb3f89e400798df14c7820754ff1a41e;hb=2f25ef33c870869e613b81ee7603b9b7337e48fe;hp=8c1aae46ebf912a8ca059fcab9ba4f61219f31c3;hpb=89c27818b3bba409ed8e4ccacc9be37384b46705;p=vpp.git diff --git a/src/vppinfra/heap.h b/src/vppinfra/heap.h index 8c1aae46ebf..70e34cb4eb3 100644 --- a/src/vppinfra/heap.h +++ b/src/vppinfra/heap.h @@ -220,7 +220,7 @@ uword heap_bytes (void *v); always_inline void * _heap_new (u32 len, u32 n_elt_bytes) { - void *v = _vec_resize (0, len, (uword) len * n_elt_bytes, + void *v = _vec_resize ((void *) 0, len, (uword) len * n_elt_bytes, sizeof (heap_header_t), HEAP_DATA_ALIGN); heap_header (v)->elt_bytes = n_elt_bytes;