Skip to content

Commit c755f35

Browse files
committed
Stop using ns->top_self here because it's set to th->top_self beforehand if needed
1 parent 2100826 commit c755f35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ vm_set_top_stack(rb_execution_context_t *ec, const rb_iseq_t *iseq, const rb_nam
794794

795795
/* for return */
796796
vm_push_frame(ec, iseq, VM_FRAME_MAGIC_TOP | VM_ENV_FLAG_LOCAL | VM_FRAME_FLAG_FINISH,
797-
ns ? ns->top_self : rb_ec_thread_ptr(ec)->top_self,
797+
rb_ec_thread_ptr(ec)->top_self,
798798
GC_GUARDED_PTR(ns),
799799
(VALUE)vm_cref_new_toplevel(ec), /* cref or me */
800800
ISEQ_BODY(iseq)->iseq_encoded, ec->cfp->sp,

0 commit comments

Comments
 (0)