mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-26 22:09:43 +03:00
put correct type casts into constructor
This commit is contained in:
parent
28ac5fe9c1
commit
85ede7192d
@ -49,11 +49,11 @@ operation appendChild %{
|
||||
}
|
||||
switch (node_type) {
|
||||
case DOM_ELEMENT_NODE:
|
||||
jsret = jsapi_new_HTMLElement(cx, NULL, NULL, result, private->htmlc);
|
||||
jsret = jsapi_new_HTMLElement(cx, NULL, NULL, (dom_element *)result, private->htmlc);
|
||||
break;
|
||||
|
||||
case DOM_TEXT_NODE:
|
||||
jsret = jsapi_new_Text(cx, NULL, NULL, result, private->htmlc);
|
||||
jsret = jsapi_new_Text(cx, NULL, NULL, (dom_text *)result, private->htmlc);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user