From 5a77e90fe843a2bfbde3df1867f142efb0ffe9fe Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 21 Oct 2020 12:46:40 +0900 Subject: Use rb_intern_const instead of rb_intern in Init functions ``` find . -name \*.o -exec nm {} + |& sed '/Init_.*\.rbimpl_id/!d;s/^.* b //;s/\.[1-9][0-9]*$//;s/\.rbimpl_id$//' | uniq ``` should be empty. --- time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'time.c') diff --git a/time.c b/time.c index 0b3692f494..ff236ce45b 100644 --- a/time.c +++ b/time.c @@ -5686,7 +5686,7 @@ Init_tm(VALUE outer, const char *name) #endif rb_define_method(tm, "initialize", tm_initialize, -1); rb_define_method(tm, "utc", tm_to_time, 0); - rb_alias(tm, rb_intern("to_time"), rb_intern("utc")); + rb_alias(tm, rb_intern_const("to_time"), rb_intern_const("utc")); rb_define_singleton_method(tm, "from_time", tm_from_time, 1); /* :startdoc:*/ -- cgit v1.2.3