ruby-changes:62125
From: Koichi <ko1@a...>
Date: Sun, 5 Jul 2020 10:45:08 +0900 (JST)
Subject: [ruby-changes:62125] 95f5fd9a55 (master): fix up Primitive.cinit! code
https://git.ruby-lang.org/ruby.git/commit/?id=95f5fd9a55 From 95f5fd9a55cf9d885ec01d50de6eddada4379839 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Sun, 5 Jul 2020 10:43:08 +0900 Subject: fix up Primitive.cinit! code Recent changes break Primitive.cinit!(c_code) so fix it. diff --git a/tool/mk_builtin_loader.rb b/tool/mk_builtin_loader.rb index cec0556..cb206ae 100644 --- a/tool/mk_builtin_loader.rb +++ b/tool/mk_builtin_loader.rb @@ -151,8 +151,8 @@ def collect_builtin base, tree, name, bs, inlines, locals = nil https://github.com/ruby/ruby/blob/trunk/tool/mk_builtin_loader.rb#L151 argc -= 1 when 'cinit' text = inline_text argc, args.first - func_name = nil - inlines[inlines.size] = [nil, [lineno, text, nil, nil]] + func_name = nil # required + inlines[inlines.size] = [lineno, text, nil, nil] argc -= 1 end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/