зеркало из https://github.com/mozilla/pjs.git
Fix compiler warning.
This commit is contained in:
Родитель
c87e64b308
Коммит
6f5ff98694
|
@ -2898,7 +2898,7 @@ nsWebShell:: GetLinkState(const PRUnichar* aURLSpec, nsLinkState& aState)
|
||||||
char buf[256];
|
char buf[256];
|
||||||
char* url = buf;
|
char* url = buf;
|
||||||
|
|
||||||
if (urlStr.Length() >= sizeof(buf)) {
|
if (urlStr.Length() >= PRInt32(sizeof buf)) {
|
||||||
url = new char[urlStr.Length() + 1];
|
url = new char[urlStr.Length() + 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -511,7 +511,7 @@ nsRDFContentUtils::MakeElementID(nsIDocument* aDocument, const nsString& aURI, n
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PRBool
|
||||||
nsRDFContentUtils::IsContainedBy(nsIContent* aElement, nsIContent* aContainer)
|
nsRDFContentUtils::IsContainedBy(nsIContent* aElement, nsIContent* aContainer)
|
||||||
{
|
{
|
||||||
nsCOMPtr<nsIContent> element( dont_QueryInterface(aElement) );
|
nsCOMPtr<nsIContent> element( dont_QueryInterface(aElement) );
|
||||||
|
|
|
@ -2898,7 +2898,7 @@ nsWebShell:: GetLinkState(const PRUnichar* aURLSpec, nsLinkState& aState)
|
||||||
char buf[256];
|
char buf[256];
|
||||||
char* url = buf;
|
char* url = buf;
|
||||||
|
|
||||||
if (urlStr.Length() >= sizeof(buf)) {
|
if (urlStr.Length() >= PRInt32(sizeof buf)) {
|
||||||
url = new char[urlStr.Length() + 1];
|
url = new char[urlStr.Length() + 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче