Bug 395678 - Fix const issues with strchr in C++ (when used in mozilla-central), r=mrbkap, a=brendan

This commit is contained in:
benjamin@smedbergs.us 2007-09-20 11:58:01 -07:00
parent f8f06a232d
commit 138a327eb5
2 changed files with 3 additions and 2 deletions

View File

@ -290,7 +290,8 @@ num_toLocaleString(JSContext *cx, uintN argc, jsval *vp)
JSRuntime *rt;
JSString *numStr, *str;
const char *num, *end, *tmpSrc;
char *buf, *dec, *tmpDest;
char *buf, *tmpDest;
const char *dec;
int digits, size, remainder, nrepeat;
/*

View File

@ -4956,7 +4956,7 @@ js_PutEscapedStringImpl(char *buffer, size_t bufferSize, FILE *fp,
{
jschar *chars, *charsEnd;
size_t n;
char *escape;
const char *escape;
char c;
uintN u, hex, shift;
enum {