1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix up Primitive.cinit! code

Recent changes break Primitive.cinit!(c_code) so fix it.
This commit is contained in:
Koichi Sasada 2020-07-05 10:43:08 +09:00
parent e4f7eee009
commit 95f5fd9a55

View file

@ -151,8 +151,8 @@ def collect_builtin base, tree, name, bs, inlines, locals = nil
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