Skip to content
Browse files

fix compiler warning

git-svn-id: http://svn.coderepos.org/share/lang/c/picoev/trunk@35053 d0d07461-0603-4401-acd4-de1884942a52
  • Loading branch information...
1 parent d909cb2 commit 3d15045bbebccf740915d47556e003a01b6bf1c7 kazuho committed Aug 25, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 picoev_kqueue.c
View
2 picoev_kqueue.c
@@ -71,7 +71,7 @@ static int apply_pending_changes(picoev_loop_kqueue* loop, int apply_all)
if (changed->events != 0) {
SET(EV_ADD | EV_ENABLE, changed->events);
}
- if (cl_off + 1
+ if ((size_t)cl_off + 1
>= sizeof(loop->changelist) / sizeof(loop->changelist[0])) {
nevents = kevent(loop->kq, loop->changelist, cl_off, NULL, 0, NULL);
assert(nevents == 0);

0 comments on commit 3d15045

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