diff --git a/mozilla/base/src/nsString.cpp b/mozilla/base/src/nsString.cpp index 7084e7bcc1a..f5777d0a29b 100644 --- a/mozilla/base/src/nsString.cpp +++ b/mozilla/base/src/nsString.cpp @@ -159,7 +159,7 @@ PRBool nsString::IsOrdered(void) const { if(mLength>1) { PRInt32 theIndex; for(theIndex=1;theIndex=mStr[theIndex]) { + if(mStr[theIndex-1]>mStr[theIndex]) { result=PR_FALSE; break; } diff --git a/mozilla/string/obsolete/nsString.cpp b/mozilla/string/obsolete/nsString.cpp index 7084e7bcc1a..f5777d0a29b 100644 --- a/mozilla/string/obsolete/nsString.cpp +++ b/mozilla/string/obsolete/nsString.cpp @@ -159,7 +159,7 @@ PRBool nsString::IsOrdered(void) const { if(mLength>1) { PRInt32 theIndex; for(theIndex=1;theIndex=mStr[theIndex]) { + if(mStr[theIndex-1]>mStr[theIndex]) { result=PR_FALSE; break; } diff --git a/mozilla/xpcom/ds/nsString.cpp b/mozilla/xpcom/ds/nsString.cpp index 7084e7bcc1a..f5777d0a29b 100644 --- a/mozilla/xpcom/ds/nsString.cpp +++ b/mozilla/xpcom/ds/nsString.cpp @@ -159,7 +159,7 @@ PRBool nsString::IsOrdered(void) const { if(mLength>1) { PRInt32 theIndex; for(theIndex=1;theIndex=mStr[theIndex]) { + if(mStr[theIndex-1]>mStr[theIndex]) { result=PR_FALSE; break; } diff --git a/mozilla/xpcom/string/obsolete/nsString.cpp b/mozilla/xpcom/string/obsolete/nsString.cpp index 7084e7bcc1a..f5777d0a29b 100644 --- a/mozilla/xpcom/string/obsolete/nsString.cpp +++ b/mozilla/xpcom/string/obsolete/nsString.cpp @@ -159,7 +159,7 @@ PRBool nsString::IsOrdered(void) const { if(mLength>1) { PRInt32 theIndex; for(theIndex=1;theIndex=mStr[theIndex]) { + if(mStr[theIndex-1]>mStr[theIndex]) { result=PR_FALSE; break; }