summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/sparse_vec.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-03-17 15:46:25 +0100
committerDamjan Marion <dmarion@me.com>2022-03-18 13:16:24 +0000
commita4a28f04cb887ee690ccc9f563d06bf74fe18faf (patch)
tree13d960091319496e1625dae4db25091764ce30c7 /src/vppinfra/sparse_vec.h
parent86bbdf926c6d642e789ad6dce6534c23820f3c63 (diff)
vppinfra: use stored vec header size to find header
Type: refactor Change-Id: Iaa1e43c87c5725ab33ea8489bff2a7bda18b9c79 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 2245be88262..4bc2cbdeaea 100644
--- a/src/vppinfra/sparse_vec.h
+++ b/src/vppinfra/sparse_vec.h
@@ -59,7 +59,7 @@ typedef struct
always_inline sparse_vec_header_t *
sparse_vec_header (void *v)
{
- return vec_header (v, sizeof (sparse_vec_header_t));
+ return vec_header (v);
}
/* Index 0 is always used to mark indices that are not valid in