diff --git a/js/src/jsxml.c b/js/src/jsxml.c index 26563a42dc00..dd16cb86a5e2 100644 --- a/js/src/jsxml.c +++ b/js/src/jsxml.c @@ -2525,7 +2525,7 @@ GeneratePrefix(JSContext *cx, JSString *uri, JSXMLArray *decls) * an existing prefix, start tacking on a hyphen and a serial number. */ serial = 0; - bp = cp; + bp = (jschar *) cp; newlength = length; do { done = JS_TRUE;