Bug 485576 - Fix a few minor gcc warnings. r=igor

This commit is contained in:
Andrew Paprocki
2009-03-27 15:45:48 -07:00
parent 3de347548f
commit d9dd77b879
4 changed files with 5 additions and 8 deletions

View File

@@ -3754,7 +3754,7 @@ Replace(JSContext *cx, JSXML *xml, uint32 i, jsval v)
vxml = (JSXML *) JS_GetPrivate(cx, vobj);
}
switch (vxml ? vxml->xml_class : JSXML_CLASS_LIMIT) {
switch (vxml ? (JSXMLClass) vxml->xml_class : JSXML_CLASS_LIMIT) {
case JSXML_CLASS_ELEMENT:
/* OPTION: enforce that descendants have superset namespaces. */
if (!CheckCycle(cx, xml, vxml))