Fix compiler warning.

git-svn-id: svn://10.0.0.236/trunk@42486 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com
1999-08-06 18:28:15 +00:00
parent 9976ce586c
commit b4714c5052
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];
}