[前][次][番号順一覧][スレッド一覧]

ruby-changes:73650

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Wed, 21 Sep 2022 11:44:36 +0900 (JST)
Subject: [ruby-changes:73650] 8a577cbc63 (master): cref_replace_with_duplicated_cref_each_frame: returns a pointer

https://git.ruby-lang.org/ruby.git/commit/?id=8a577cbc63

From 8a577cbc63e164a0771581ea7234578f5beab100 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Wed, 14 Sep 2022 14:17:56 +0900
Subject: cref_replace_with_duplicated_cref_each_frame: returns a pointer

Why use FALSE here?
---
 vm_insnhelper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 8a82a8db32..ed1c175eb3 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -799,7 +799,7 @@ cref_replace_with_duplicated_cref_each_frame(const VALUE *vptr, int can_be_svar, https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L799
             break;
         }
     }
-    return FALSE;
+    return NULL;
 }
 
 static rb_cref_t *
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]