Fix compiler warning.

This commit is contained in:
waterson@netscape.com
1999-08-06 18:28:15 +00:00
parent 0c3965af38
commit d39e588416
3 changed files with 3 additions and 3 deletions

View File

@@ -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];
}