summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)