处理warning websocketsession
This commit is contained in:
parent
8ab07d896f
commit
d73ff7eb0c
@ -190,7 +190,7 @@ namespace a8
|
|||||||
|
|
||||||
void WebSocketSession::DecodeFrame(char* buf, int& offset, unsigned int buflen)
|
void WebSocketSession::DecodeFrame(char* buf, int& offset, unsigned int buflen)
|
||||||
{
|
{
|
||||||
if (offset + 2 > buflen) {
|
if (offset + 2 > (int)buflen) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
char* real_buf = buf + offset;
|
char* real_buf = buf + offset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user