Bug 624410: Add gcc-suggested parentheses in nsReadableUtils.cpp to silence build warning. r=dwitte

This commit is contained in:
Daniel Holbert 2011-03-29 08:47:53 -07:00
Родитель 1742f23133
Коммит 02e60c843c
1 изменённых файлов: 8 добавлений и 6 удалений

Просмотреть файл

@ -573,14 +573,16 @@ IsUTF8( const nsACString& aString )
--state;
// non-character : EF BF [BE-BF] or F[0-7] [89AB]F BF [BE-BF]
if ( nonchar && ( !state && c < 0xBE ||
state == 1 && c != 0xBF ||
state == 2 && 0x0F != (0x0F & c) ))
nonchar = PR_FALSE;
if ( nonchar &&
( ( !state && c < 0xBE ) ||
( state == 1 && c != 0xBF ) ||
( state == 2 && 0x0F != (0x0F & c) )))
nonchar = PR_FALSE;
if ( !UTF8traits::isInSeq(c) || overlong && c <= olupper ||
surrogate && slower <= c || nonchar && !state )
if ( !UTF8traits::isInSeq(c) || ( overlong && c <= olupper ) ||
( surrogate && slower <= c ) || ( nonchar && !state ))
return PR_FALSE; // Not UTF-8 string
overlong = surrogate = PR_FALSE;
}
}