Fix compiler warning.
git-svn-id: svn://10.0.0.236/trunk@42486 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user