处理warning websocketsession

This commit is contained in:
aozhiwei 2020-06-02 10:03:35 +08:00
parent 8ab07d896f
commit d73ff7eb0c

View File

@ -190,7 +190,7 @@ namespace a8
void WebSocketSession::DecodeFrame(char* buf, int& offset, unsigned int buflen)
{
if (offset + 2 > buflen) {
if (offset + 2 > (int)buflen) {
return;
}
char* real_buf = buf + offset;