зеркало из https://github.com/mozilla/pjs.git
Fix simple signed/unsigned comparison warning.
This commit is contained in:
Родитель
d190f859e7
Коммит
aa068da743
|
@ -2659,7 +2659,7 @@ InternetSearchDataSource::GetSearchEngineList(nsFileSpec nativeDir, PRBool check
|
|||
nsAutoString iconURL;
|
||||
PRInt32 extensionOffset;
|
||||
extensionOffset = uri.RFind(".src", PR_TRUE);
|
||||
if ((extensionOffset >= 0) && (extensionOffset == uri.Length()-4))
|
||||
if ((extensionOffset >= 0) && (extensionOffset == len-4))
|
||||
{
|
||||
nsAutoString temp;
|
||||
|
||||
|
|
|
@ -454,7 +454,7 @@ LocalSearchDataSource::doMatch(nsIRDFLiteral *literal, char *matchMethod, char *
|
|||
else if (!PL_strcmp(matchMethod, "endswith"))
|
||||
{
|
||||
PRInt32 pos = value.RFind(matchText, PR_TRUE);
|
||||
if ((pos >= 0) && (pos == (value.Length() - PRInt32(strlen(matchText)))))
|
||||
if ((pos >= 0) && (pos == (PRInt32(value.Length()) - PRInt32(strlen(matchText)))))
|
||||
found = PR_TRUE;
|
||||
}
|
||||
else if (!PL_strcmp(matchMethod, "is"))
|
||||
|
|
Загрузка…
Ссылка в новой задаче