aboutsummaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-27 08:15:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-27 08:15:27 +0000
commit54be1d97c40a2abc7c976b209cb42acec6f6b56c (patch)
tree127395984175c4c5af931da19fff51dd0869f4e3 /object.c
parent5c396145a418def77c9faceacb92177e8a93e15b (diff)
downloadruby-54be1d97c40a2abc7c976b209cb42acec6f6b56c.tar.gz
defs/id.def: predefine to_f ID
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/object.c b/object.c
index 5ecc035302..5fd282c63a 100644
--- a/object.c
+++ b/object.c
@@ -50,7 +50,7 @@ VALUE rb_cFalseClass; /*!< FalseClass class */
#define id_init_clone idInitialize_clone
#define id_init_dup idInitialize_dup
#define id_const_missing idConst_missing
-static ID id_to_f;
+#define id_to_f idTo_f
#define CLASS_OR_MODULE_P(obj) \
(!SPECIAL_CONST_P(obj) && \
@@ -4117,7 +4117,6 @@ InitVM_Object(void)
void
Init_Object(void)
{
- id_to_f = rb_intern_const("to_f");
id_dig = rb_intern_const("dig");
InitVM(Object);
}