Archived
1
0
This commit is contained in:
Jeff Becker 2018-05-06 08:59:03 -04:00
parent 8f40d7842a
commit e01fbacf7c
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

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