#337: Bug in rb_source_new_timer  in gcd.c
----------------------------------------+-----------------------------------
 Reporter:  ernest.prabha...@…          |       Owner:  lsansone...@…        
     Type:  defect                      |      Status:  new                  
 Priority:  minor                       |   Milestone:  MacRuby 0.5          
Component:  MacRuby                     |    Keywords:                       
----------------------------------------+-----------------------------------
 Maybe I'm missing something, but shouldn't "&delay" be in this argument
 list?

     rb_scan_args(argc, argv, "21", &queue, &interval, &leeway);

 If not, where is delay initialized?
 ----
 rb_source_new_timer(VALUE klass, SEL sel, int argc, VALUE* argv)
 {
     dispatch_time_t start_time;
     VALUE queue = Qnil, interval = Qnil, delay = Qnil, leeway = Qnil;
     rb_scan_args(argc, argv, "21", &queue, &interval, &leeway);
     if (NIL_P(leeway)) {
         leeway = INT2FIX(0);
     }
     if (NIL_P(delay)) {
         start_time = DISPATCH_TIME_NOW;
     }
     else {
         start_time = dispatch_walltime(NULL,
 number_to_nanoseconds(delay));
     }

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/337>
MacRuby <http://macruby.org/>

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to