From b4714c5052f889ecc627f2298bcabca634ef0a61 Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Fri, 6 Aug 1999 18:28:15 +0000 Subject: [PATCH] Fix compiler warning. git-svn-id: svn://10.0.0.236/trunk@42486 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsWebShell.cpp | 2 +- mozilla/rdf/content/src/nsRDFContentUtils.cpp | 2 +- mozilla/webshell/src/nsWebShell.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index 4f6164a0df2..aa35d6b8532 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -2898,7 +2898,7 @@ nsWebShell:: GetLinkState(const PRUnichar* aURLSpec, nsLinkState& aState) char buf[256]; char* url = buf; - if (urlStr.Length() >= sizeof(buf)) { + if (urlStr.Length() >= PRInt32(sizeof buf)) { url = new char[urlStr.Length() + 1]; } diff --git a/mozilla/rdf/content/src/nsRDFContentUtils.cpp b/mozilla/rdf/content/src/nsRDFContentUtils.cpp index 2bc458e1885..ebcda9bbb64 100644 --- a/mozilla/rdf/content/src/nsRDFContentUtils.cpp +++ b/mozilla/rdf/content/src/nsRDFContentUtils.cpp @@ -511,7 +511,7 @@ nsRDFContentUtils::MakeElementID(nsIDocument* aDocument, const nsString& aURI, n return NS_OK; } - +PRBool nsRDFContentUtils::IsContainedBy(nsIContent* aElement, nsIContent* aContainer) { nsCOMPtr element( dont_QueryInterface(aElement) ); diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index 4f6164a0df2..aa35d6b8532 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -2898,7 +2898,7 @@ nsWebShell:: GetLinkState(const PRUnichar* aURLSpec, nsLinkState& aState) char buf[256]; char* url = buf; - if (urlStr.Length() >= sizeof(buf)) { + if (urlStr.Length() >= PRInt32(sizeof buf)) { url = new char[urlStr.Length() + 1]; }