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

ruby-changes:70270

From: Koichi <ko1@a...>
Date: Fri, 17 Dec 2021 15:47:13 +0900 (JST)
Subject: [ruby-changes:70270] ce6fc20f97 (master): data type should be `static`

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

From ce6fc20f973e307071533bfd9699da88986c67a3 Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Fri, 17 Dec 2021 14:33:26 +0900
Subject: data type should be `static`

---
 hash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hash.c b/hash.c
index 9cb9a635e07..3e59458dabc 100644
--- a/hash.c
+++ b/hash.c
@@ -6653,7 +6653,7 @@ env_dup(VALUE obj) https://github.com/ruby/ruby/blob/trunk/hash.c#L6653
     rb_raise(rb_eTypeError, "Cannot dup ENV, use ENV.to_h to get a copy of ENV as a hash");
 }
 
-const rb_data_type_t env_data_type = {
+static const rb_data_type_t env_data_type = {
     "ENV",
     {
         NULL,
-- 
cgit v1.2.1


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

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