Permalink
Browse files

pass an argument when call the #divmod method in time_timespec()

  • Loading branch information...
1 parent f66a573 commit 860cb40c481f876e3bbb60e18a2520f0f758df98 @Watson1978 Watson1978 committed Jul 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 time.c
View
2 time.c
@@ -2383,7 +2383,7 @@ time_timespec(VALUE num, int interval)
i = INT2FIX(1);
ary = Qundef;
if (rb_vm_respond_to(num, sel_divmod, true)) {
- ary = rb_vm_call(num, sel_divmod, 0, NULL);
+ ary = rb_vm_call(num, sel_divmod, 1, &i);
}
if (ary != Qundef && !NIL_P(ary = rb_check_array_type(ary))) {
i = rb_ary_entry(ary, 0);

0 comments on commit 860cb40

Please sign in to comment.