From c3c80cb952304f10637eaaae85f084679e500f03 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 26 Sep 2023 19:38:08 +0200 Subject: [PATCH] [libdom] cast --- src/ecmascript/libdom/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ecmascript/libdom/parse.c b/src/ecmascript/libdom/parse.c index 8662579d0..4622a9885 100644 --- a/src/ecmascript/libdom/parse.c +++ b/src/ecmascript/libdom/parse.c @@ -24,7 +24,7 @@ el_insert_before(struct document *document, void *element, struct string *source dom_document *doc = (dom_document *)document->dom; dom_node *node = (dom_node *)element; dom_string *text = NULL; - dom_exception exc = dom_string_create(source->source, source->length, &text); + dom_exception exc = dom_string_create((const unsigned char *)source->source, source->length, &text); if (exc != DOM_NO_ERR || !text) { return;