Removed a compiler warning

git-svn-id: svn://10.0.0.236/trunk@39709 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1999-07-16 17:40:39 +00:00
parent ad11ac2b34
commit 5703a15016
15 changed files with 43 additions and 44 deletions

View File

@@ -118,10 +118,10 @@ nsTextFragment::SetTo(const PRUnichar* aBuffer, PRInt32 aLength)
if (0 != aLength) {
// See if we need to store the data in ucs2 or not
PRBool need2 = PR_FALSE;
const PRUnichar* cp = aBuffer;
const PRUnichar* end = aBuffer + aLength;
while (cp < end) {
PRUnichar ch = *cp++;
const PRUnichar* ucp = aBuffer;
const PRUnichar* uend = aBuffer + aLength;
while (ucp < uend) {
PRUnichar ch = *ucp++;
if (ch >> 8) {
need2 = PR_TRUE;
break;