put correct type casts into constructor

This commit is contained in:
Vincent Sanders 2012-11-08 17:30:43 +00:00
parent 28ac5fe9c1
commit 85ede7192d

View File

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