summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2018-06-21 17:41:56 +0100
committerJoe Thornber <ejt@redhat.com>2018-06-21 17:41:56 +0100
commit254e5c5d119447bcb8b160a4b4e5b0c36e9af5ba (patch)
treea487ac97c6c9fd9db613ec03e865a9cec03b848a /base
parent18528180d9f588e265747f4710a8767756454b4c (diff)
downloadlvm2-254e5c5d119447bcb8b160a4b4e5b0c36e9af5ba.tar.gz
radix-tree: squash a pointer arithmetic warning
Diffstat (limited to 'base')
-rw-r--r--base/data-struct/radix-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/data-struct/radix-tree.c b/base/data-struct/radix-tree.c
index ffbf029f7..1d24dadf2 100644
--- a/base/data-struct/radix-tree.c
+++ b/base/data-struct/radix-tree.c
@@ -628,7 +628,7 @@ static void _erase_elt(void *array, unsigned obj_size, unsigned count, unsigned
obj_size * (count - index - 1));
// Zero the now unused last elt (set's v.type to UNSET)
- memset(array + (count - 1) * obj_size, 0, obj_size);
+ memset(((uint8_t *) array) + (count - 1) * obj_size, 0, obj_size);
}
static bool _remove(struct radix_tree *rt, struct value *root, uint8_t *kb, uint8_t *ke)