зеркало из https://github.com/mozilla/pjs.git
fixed bug in IsOrdered that was found on the web
This commit is contained in:
Родитель
5db5e6ef03
Коммит
674c289b46
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче