Skip to content

Commit 860cb40

Browse files
committed
pass an argument when call the #divmod method in time_timespec()
1 parent f66a573 commit 860cb40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2383,7 +2383,7 @@ time_timespec(VALUE num, int interval)
23832383
i = INT2FIX(1);
23842384
ary = Qundef;
23852385
if (rb_vm_respond_to(num, sel_divmod, true)) {
2386-
ary = rb_vm_call(num, sel_divmod, 0, NULL);
2386+
ary = rb_vm_call(num, sel_divmod, 1, &i);
23872387
}
23882388
if (ary != Qundef && !NIL_P(ary = rb_check_array_type(ary))) {
23892389
i = rb_ary_entry(ary, 0);

0 commit comments

Comments
 (0)