We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f66a573 commit 860cb40Copy full SHA for 860cb40
time.c
@@ -2383,7 +2383,7 @@ time_timespec(VALUE num, int interval)
2383
i = INT2FIX(1);
2384
ary = Qundef;
2385
if (rb_vm_respond_to(num, sel_divmod, true)) {
2386
- ary = rb_vm_call(num, sel_divmod, 0, NULL);
+ ary = rb_vm_call(num, sel_divmod, 1, &i);
2387
}
2388
if (ary != Qundef && !NIL_P(ary = rb_check_array_type(ary))) {
2389
i = rb_ary_entry(ary, 0);
0 commit comments