Skip to content

Commit

Permalink
fixed Tencent#107
Browse files Browse the repository at this point in the history
  • Loading branch information
leiffyli committed Dec 19, 2018
1 parent 012bd1d commit f38e101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example_poll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static void *poll_routine( void *arg )
int ret = poll( pf,iWaitCnt,1000 );
printf("co %p poll wait %ld ret %d\n",
co_self(),iWaitCnt,ret);
for(int i=0;i<ret;i++)
for(int i=0;i<(int)iWaitCnt;i++)
{
printf("co %p fire fd %d revents 0x%X POLLOUT 0x%X POLLERR 0x%X POLLHUP 0x%X\n",
co_self(),
Expand Down

0 comments on commit f38e101

Please sign in to comment.