summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/sparse_vec.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-05-04 20:45:41 +0200
committerFlorin Coras <florin.coras@gmail.com>2018-05-05 01:20:53 +0000
commit2f25ef33c870869e613b81ee7603b9b7337e48fe (patch)
treee0c0cfd6bd76bfc4f321a38e2bdbf8914ee452f3 /src/vppinfra/sparse_vec.h
parent89c27818b3bba409ed8e4ccacc9be37384b46705 (diff)
autodetect alignment during _vec_resize
Change-Id: I2896dbde78b5d58dc706756f4c76632c303557ae Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/sparse_vec.h')
-rw-r--r--src/vppinfra/sparse_vec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/sparse_vec.h b/src/vppinfra/sparse_vec.h
index ec8f0a1c4bf..0da154d8b68 100644
--- a/src/vppinfra/sparse_vec.h
+++ b/src/vppinfra/sparse_vec.h
@@ -76,7 +76,7 @@ sparse_vec_new (uword elt_bytes, uword sparse_index_bits)
ASSERT (sparse_index_bits <= 16);
- v = _vec_resize (0,
+ v = _vec_resize ((void *) 0,
/* length increment */ 8,
/* data bytes */ 8 * elt_bytes,
/* header bytes */ sizeof (h[0]),