summaryrefslogtreecommitdiff
path: root/inits.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-06-20 14:55:09 -0700
committerGitHub <noreply@github.com>2020-06-20 14:55:09 -0700
commit95b0fed3714b87dcb40a16f33d9e3160f9945e38 (patch)
tree100cb67619729fa2b5c306a138599eef6fb11377 /inits.c
parentb68ddcf30ce1dc2788d3bd3d10169726feada1f2 (diff)
downloadruby-95b0fed3714b87dcb40a16f33d9e3160f9945e38.tar.gz
Make Integer#zero? a separated method and builtin (#3226)
A prerequisite to fix https://bugs.ruby-lang.org/issues/15589 with JIT. This commit alone doesn't make a significant difference yet, but I thought this commit should be committed independently. This method override was discussed in [Misc #16961].
Diffstat (limited to 'inits.c')
-rw-r--r--inits.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/inits.c b/inits.c
index 4e5d65ab85..ad57b754a4 100644
--- a/inits.c
+++ b/inits.c
@@ -82,6 +82,7 @@ rb_call_builtin_inits(void)
{
#define BUILTIN(n) CALL(builtin_##n)
BUILTIN(gc);
+ BUILTIN(integer);
BUILTIN(io);
BUILTIN(dir);
BUILTIN(ast);