mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 715284 WebSocketChannel.cpp compiler warning r=jduell
This commit is contained in:
parent
f2f60e1a73
commit
134df57b77
@ -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