fixed bug in IsOrdered that was found on the web

git-svn-id: svn://10.0.0.236/trunk@13494 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1998-10-26 22:33:39 +00:00
parent 1c7b13862f
commit 843ee0f1c6
4 changed files with 4 additions and 4 deletions

View File

@@ -159,7 +159,7 @@ PRBool nsString::IsOrdered(void) const {
if(mLength>1) {
PRInt32 theIndex;
for(theIndex=1;theIndex<mLength;theIndex++) {
if(mStr[theIndex-1]>=mStr[theIndex]) {
if(mStr[theIndex-1]>mStr[theIndex]) {
result=PR_FALSE;
break;
}

View File

@@ -159,7 +159,7 @@ PRBool nsString::IsOrdered(void) const {
if(mLength>1) {
PRInt32 theIndex;
for(theIndex=1;theIndex<mLength;theIndex++) {
if(mStr[theIndex-1]>=mStr[theIndex]) {
if(mStr[theIndex-1]>mStr[theIndex]) {
result=PR_FALSE;
break;
}

View File

@@ -159,7 +159,7 @@ PRBool nsString::IsOrdered(void) const {
if(mLength>1) {
PRInt32 theIndex;
for(theIndex=1;theIndex<mLength;theIndex++) {
if(mStr[theIndex-1]>=mStr[theIndex]) {
if(mStr[theIndex-1]>mStr[theIndex]) {
result=PR_FALSE;
break;
}

View File

@@ -159,7 +159,7 @@ PRBool nsString::IsOrdered(void) const {
if(mLength>1) {
PRInt32 theIndex;
for(theIndex=1;theIndex<mLength;theIndex++) {
if(mStr[theIndex-1]>=mStr[theIndex]) {
if(mStr[theIndex-1]>mStr[theIndex]) {
result=PR_FALSE;
break;
}