summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2023-09-19 19:34:50 -0400
committerPeter Zhu <[email protected]>2023-09-19 19:34:50 -0400
commit38e98cbb6a29f984795504fbc64872526edd1197 ()
tree4af170ccf1cdabbd9049678c28462ed42564d7d6
parent4c1e367039d1a35f7eed8d2d80ce7eff2d69fcec (diff)
Fix typo in "refinements"
-rw-r--r--vm_eval.c2
-rw-r--r--vm_method.c4
2 files changed, 3 insertions, 3 deletions
@@ -545,7 +545,7 @@ rb_call0(rb_execution_context_t *ec,
RB_DEBUG_COUNTER_INC(call0_public);
const rb_callable_method_entry_t *cc_cme = cc ? vm_cc_cme(cc) : NULL;
- const rb_callable_method_entry_t *cme = callable_method_entry_refeinements0(CLASS_OF(recv), mid, NULL, true, cc_cme);
call_status = rb_method_call_status(ec, cme, scope, self);
if (UNLIKELY(call_status != MISSING_NONE)) {
@@ -1445,7 +1445,7 @@ rb_method_entry_with_refinements(VALUE klass, ID id, VALUE *defined_class_ptr)
}
static const rb_callable_method_entry_t *
-callable_method_entry_refeinements0(VALUE klass, ID id, VALUE *defined_class_ptr, bool with_refinements,
const rb_callable_method_entry_t *cme)
{
if (cme == NULL || LIKELY(cme->def->type != VM_METHOD_TYPE_REFINED)) {
@@ -1462,7 +1462,7 @@ static const rb_callable_method_entry_t *
callable_method_entry_refinements(VALUE klass, ID id, VALUE *defined_class_ptr, bool with_refinements)
{
const rb_callable_method_entry_t *cme = callable_method_entry(klass, id, defined_class_ptr);
- return callable_method_entry_refeinements0(klass, id, defined_class_ptr, with_refinements, cme);
}
const rb_callable_method_entry_t *