bug 715284 WebSocketChannel.cpp compiler warning r=jduell

This commit is contained in:
Patrick McManus 2012-01-04 18:19:15 -05:00
Родитель 4eba5b7917
Коммит 2aec77617b
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

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