yxml: add casting

This commit is contained in:
Milanka Ringwald 2019-03-20 12:01:09 +01:00
parent 8b73b7c557
commit a788b16c9d

View File

@ -329,7 +329,7 @@ static inline yxml_ret_t yxml_refattrval(yxml_t *x, unsigned ch) { (void) ch; re
void yxml_init(yxml_t *x, void *stack, size_t stacksize) {
memset(x, 0, sizeof(*x));
x->line = 1;
x->stack = stack;
x->stack = (unsigned char *) stack;
x->stacksize = stacksize;
*x->stack = 0;
x->elem = x->pi = x->attr = (char *)x->stack;