mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
bug 715284 WebSocketChannel.cpp compiler warning r=jduell
This commit is contained in:
parent
4eba5b7917
commit
2aec77617b
@ -2373,7 +2373,8 @@ WebSocketChannel::SendMsgCommon(const nsACString *aMsg, bool aIsBinary,
|
||||
return NS_ERROR_NOT_CONNECTED;
|
||||
}
|
||||
|
||||
if (aLength > mMaxMessageSize) {
|
||||
NS_ABORT_IF_FALSE(mMaxMessageSize >= 0, "max message size negative");
|
||||
if (aLength > static_cast<PRUint32>(mMaxMessageSize)) {
|
||||
LOG(("WebSocketChannel:: Error: message too big\n"));
|
||||
return NS_ERROR_FILE_TOO_BIG;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user