libyang BUGFIX invalid use of void *
diff --git a/src/tree_data_helpers.c b/src/tree_data_helpers.c
index c3a842c..6bf1a6d 100644
--- a/src/tree_data_helpers.c
+++ b/src/tree_data_helpers.c
@@ -658,7 +658,7 @@
}
/* add all used prefixes */
- value_end = value + value_len;
+ value_end = (char *)value + value_len;
for (value_iter = value; value_iter; value_iter = value_next) {
LY_CHECK_GOTO(ret = ly_value_prefix_next(value_iter, value_end, &substr_len, &is_prefix, &value_next), cleanup);
if (is_prefix) {
@@ -694,7 +694,7 @@
}
/* add all used prefixes */
- value_end = value + value_len;
+ value_end = (char *)value + value_len;
for (value_iter = value; value_iter; value_iter = value_next) {
LY_CHECK_GOTO(ret = ly_value_prefix_next(value_iter, value_end, &substr_len, &is_prefix, &value_next), cleanup);
if (is_prefix) {