On Tue, May 08, 2012 at 10:33:43AM -0500, Brandon Black <blbl...@gmail.com> 
wrote:
> Then it works.  If I change j++ to ++j in the above, it still works.

another bug... cna you try with this loop:

  for (i = 0; i < anfdmax; ++i)
    {
      j = 0;

      for (w = w2 = anfds [i].head; w; w = w->next)
        {
          verify_watcher (EV_A_ (W)w);

          if (j++ & 1)
            {
              assert (("libev: io watcher list contains a loop", w != w2));
              w2 = w2->next;
            }

          assert (("libev: inactive fd watcher on anfd list", ev_active (w) == 
1));
          assert (("libev: fd mismatch between watcher and anfd", ((ev_io 
*)w)->fd == i));
        }
    }

j wasn't initailised to 0 correctly, obviously. sigh.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schm...@schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
libev mailing list
libev@lists.schmorp.de
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to