fix
This commit is contained in:
parent
8f40d7842a
commit
e01fbacf7c
@ -105,7 +105,7 @@ namespace ev
|
|||||||
if(event->filter & EVFILT_READ && handler->readable())
|
if(event->filter & EVFILT_READ && handler->readable())
|
||||||
{
|
{
|
||||||
int readed = 0;
|
int readed = 0;
|
||||||
int readnum = event->data;
|
size_t readnum = event->data;
|
||||||
while(readnum > sizeof(readbuf))
|
while(readnum > sizeof(readbuf))
|
||||||
{
|
{
|
||||||
int r = handler->read(readbuf, sizeof(readbuf));
|
int r = handler->read(readbuf, sizeof(readbuf));
|
||||||
|
Reference in New Issue
Block a user