diff --git a/mozilla/js/js2/jstypes.cpp b/mozilla/js/js2/jstypes.cpp index 03582f4258e..a005ae9905d 100644 --- a/mozilla/js/js2/jstypes.cpp +++ b/mozilla/js/js2/jstypes.cpp @@ -170,7 +170,7 @@ JSValue JSValue::toPrimitive(ECMA_type hint) const JSValue JSValue::valueToString(const JSValue& value) // can assume value is not a string { - char *chrp; + const char* chrp; char buf[dtosStandardBufferSize]; switch (value.tag) { case i32_tag: diff --git a/mozilla/js2/src/jstypes.cpp b/mozilla/js2/src/jstypes.cpp index 03582f4258e..a005ae9905d 100644 --- a/mozilla/js2/src/jstypes.cpp +++ b/mozilla/js2/src/jstypes.cpp @@ -170,7 +170,7 @@ JSValue JSValue::toPrimitive(ECMA_type hint) const JSValue JSValue::valueToString(const JSValue& value) // can assume value is not a string { - char *chrp; + const char* chrp; char buf[dtosStandardBufferSize]; switch (value.tag) { case i32_tag: