My edits to timeless's patch for bug 238303, to fix warnings (r/a=me).

git-svn-id: svn://10.0.0.236/trunk@154496 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org 2004-04-03 22:11:11 +00:00
parent 1f031dbd01
commit edc339b307
2 changed files with 7 additions and 3 deletions

View File

@ -2665,7 +2665,7 @@ js_dtoa(double d, int mode, JSBool biasUp, int ndigits,
*s++ = '9';
goto roundoff;
}
*s++ = dig + 1;
*s++ = (char)dig + 1;
goto ret;
}
*s++ = (char)dig;

View File

@ -267,8 +267,12 @@ typedef enum JSCharType {
#define JS_ISUPPER(c) (JS_CTYPE(c) == JSCT_UPPERCASE_LETTER)
#define JS_ISLOWER(c) (JS_CTYPE(c) == JSCT_LOWERCASE_LETTER)
#define JS_TOUPPER(c) ((JS_CCODE(c) & 0x00100000) ? (c) - ((int32)JS_CCODE(c) >> 22) : (c))
#define JS_TOLOWER(c) ((JS_CCODE(c) & 0x00200000) ? (c) + ((int32)JS_CCODE(c) >> 22) : (c))
#define JS_TOUPPER(c) ((jschar) ((JS_CCODE(c) & 0x00100000) \
? (c) - ((int32)JS_CCODE(c) >> 22) \
: (c)))
#define JS_TOLOWER(c) ((jschar) ((JS_CCODE(c) & 0x00200000) \
? (c) + ((int32)JS_CCODE(c) >> 22) \
: (c)))
#define JS_TOCTRL(c) ((c) ^ 64) /* XXX unsafe! requires uppercase c */