klass == (VALUE)NULL --> !klass

Co-authored-by: Rafael Mendonça França <rafael@franca.dev>
This commit is contained in:
Gary Tou 2023-04-26 06:05:30 -07:00 committed by Aaron Patterson
parent 5dd46a345a
commit 96a2e27185

View File

@ -5051,7 +5051,7 @@ vm_defined(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, rb_num_t op_
if (me) {
VALUE klass = vm_search_normal_superclass(me->defined_class);
if (klass == (VALUE)NULL) return false;
if (!klass) return false;
ID id = me->def->original_id;