1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[libdom] cast

This commit is contained in:
Witold Filipczyk 2023-09-26 19:38:08 +02:00
parent 5e5d7f702a
commit c3c80cb952

View File

@ -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;