diff options
author | Damjan Marion <damarion@cisco.com> | 2018-05-04 20:45:41 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2018-05-05 01:20:53 +0000 |
commit | 2f25ef33c870869e613b81ee7603b9b7337e48fe (patch) | |
tree | e0c0cfd6bd76bfc4f321a38e2bdbf8914ee452f3 /src/vppinfra/heap.h | |
parent | 89c27818b3bba409ed8e4ccacc9be37384b46705 (diff) |
autodetect alignment during _vec_resize
Change-Id: I2896dbde78b5d58dc706756f4c76632c303557ae
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/heap.h')
-rw-r--r-- | src/vppinfra/heap.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |