]> git.llucax.com Git - software/libev.git/commitdiff
*** empty log message ***
authorroot <root>
Fri, 2 Nov 2007 20:21:33 +0000 (20:21 +0000)
committerroot <root>
Fri, 2 Nov 2007 20:21:33 +0000 (20:21 +0000)
ev.c

diff --git a/ev.c b/ev.c
index 23507bdd559eccf79239ffbaaca331756d8608a9..a9864a72eea93d65a19dcaf8f062df4a7bff8960 100644 (file)
--- a/ev.c
+++ b/ev.c
@@ -860,6 +860,9 @@ ev_clear_pending (W w)
 static void
 ev_start (W w, int active)
 {
+  if (w->priority < EV_MINPRI) w->priority = EV_MINPRI;
+  if (w->priority > EV_MAXPRI) w->priority = EV_MAXPRI;
+
   w->active = active;
 }