From 96a2e27185475d4b9138ecda4f38a35621d1d085 Mon Sep 17 00:00:00 2001 From: Gary Tou Date: Wed, 26 Apr 2023 06:05:30 -0700 Subject: [PATCH] `klass == (VALUE)NULL` --> `!klass` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Rafael Mendonça França --- vm_insnhelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 4226fdc6de..fb2e3bc87f 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -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;