1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

cc_new: vm_ci_new's 4th argument is a pointer

Don't pass boolean.
This commit is contained in:
卜部昌平 2022-09-14 14:47:26 +09:00
parent ec5798d28b
commit 77c61ae3ab
Notes: git 2022-09-21 11:44:33 +09:00

View file

@ -408,7 +408,7 @@ cc_new(VALUE klass, ID mid, int argc, const rb_callable_method_entry_t *cme)
} }
if (cc == NULL) { if (cc == NULL) {
const struct rb_callinfo *ci = vm_ci_new(mid, 0, argc, false); // TODO: proper ci const struct rb_callinfo *ci = vm_ci_new(mid, 0, argc, NULL); // TODO: proper ci
cc = vm_cc_new(klass, cme, vm_call_general); cc = vm_cc_new(klass, cme, vm_call_general);
METHOD_ENTRY_CACHED_SET((struct rb_callable_method_entry_struct *)cme); METHOD_ENTRY_CACHED_SET((struct rb_callable_method_entry_struct *)cme);
vm_ccs_push(klass, ccs, ci, cc); vm_ccs_push(klass, ccs, ci, cc);