Bug 409384 - Firefox 3.0b2 fauks to compile with gcc 4.3, r=dwitte+dbaron a=damons
git-svn-id: svn://10.0.0.236/trunk@246569 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -315,7 +315,12 @@ struct nsCharTraits<PRUnichar>
|
||||
ASCIIToLower( char_type c )
|
||||
{
|
||||
if (c < 0x100)
|
||||
return (c >= 'A' && c <= 'Z') ? c + ('a' - 'A') : c;
|
||||
{
|
||||
if (c >= 'A' && c <= 'Z')
|
||||
return char_type(c + ('a' - 'A'));
|
||||
|
||||
return c;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (c == 0x212A) // KELVIN SIGN
|
||||
@@ -570,7 +575,10 @@ struct nsCharTraits<char>
|
||||
char_type
|
||||
ASCIIToLower( char_type c )
|
||||
{
|
||||
return (c >= 'A' && c <= 'Z') ? (c + ('a' - 'A')) : c;
|
||||
if (c >= 'A' && c <= 'Z')
|
||||
return char_type(c + ('a' - 'A'));
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
static
|
||||
|
||||
Reference in New Issue
Block a user