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:
benjamin%smedbergs.us
2008-02-26 22:44:42 +00:00
parent d004facbc8
commit 497bc07cfe
3 changed files with 14 additions and 6 deletions

View File

@@ -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