ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.c
(Generate patch)

Comparing libev/ev.c (file contents):
Revision 1.307 by root, Sun Jul 19 07:20:41 2009 UTC vs.
Revision 1.309 by root, Sun Jul 26 04:24:17 2009 UTC

1057 1057
1058 for (;;) 1058 for (;;)
1059 { 1059 {
1060 int c = k << 1; 1060 int c = k << 1;
1061 1061
1062 if (c > N + HEAP0 - 1) 1062 if (c >= N + HEAP0)
1063 break; 1063 break;
1064 1064
1065 c += c + 1 < N + HEAP0 && ANHE_at (heap [c]) > ANHE_at (heap [c + 1]) 1065 c += c + 1 < N + HEAP0 && ANHE_at (heap [c]) > ANHE_at (heap [c + 1])
1066 ? 1 : 0; 1066 ? 1 : 0;
1067 1067
2671 return; 2671 return;
2672 2672
2673 assert (("libev: ev_signal_start called with illegal signal number", w->signum > 0 && w->signum < EV_NSIG)); 2673 assert (("libev: ev_signal_start called with illegal signal number", w->signum > 0 && w->signum < EV_NSIG));
2674 2674
2675#if EV_MULTIPLICITY 2675#if EV_MULTIPLICITY
2676 assert (("libev: tried to attach to a signal from two different loops", 2676 assert (("libev: a signal must not be attached to two different loops",
2677 !signals [w->signum - 1].loop || signals [w->signum - 1].loop == loop)); 2677 !signals [w->signum - 1].loop || signals [w->signum - 1].loop == loop));
2678 2678
2679 signals [w->signum - 1].loop = EV_A; 2679 signals [w->signum - 1].loop = EV_A;
2680#endif 2680#endif
2681 2681

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines