Skip to content
Browse files

fix

git-svn-id: http://svn.coderepos.org/share/lang/c/picoev/trunk@35044 d0d07461-0603-4401-acd4-de1884942a52
  • Loading branch information...
1 parent 9480be7 commit 059cd32ae4ca0ee241de4343834592cd45b66582 kazuho committed Aug 25, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 picoev.h
View
4 picoev.h
@@ -279,7 +279,9 @@ extern "C" {
to -1 and call the function until -1 is returned */
PICOEV_INLINE
int picoev_next_fd(picoev_loop* loop, int curfd) {
- assert(PICOEV_IS_INITED_AND_FD_IN_RANGE(curfd));
+ if (curfd != -1) {
+ assert(PICOEV_IS_INITED_AND_FD_IN_RANGE(curfd));
+ }
while (++curfd < picoev.max_fd) {
if (loop->loop_id == picoev.fds[curfd].loop_id) {
return curfd;

0 comments on commit 059cd32

Please sign in to comment.
Something went wrong with that request. Please try again.