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:
parent
e4f7eee009
commit
95f5fd9a55
1 changed files with 2 additions and 2 deletions
|
@ -151,8 +151,8 @@ def collect_builtin base, tree, name, bs, inlines, locals = nil
|
||||||
argc -= 1
|
argc -= 1
|
||||||
when 'cinit'
|
when 'cinit'
|
||||||
text = inline_text argc, args.first
|
text = inline_text argc, args.first
|
||||||
func_name = nil
|
func_name = nil # required
|
||||||
inlines[inlines.size] = [nil, [lineno, text, nil, nil]]
|
inlines[inlines.size] = [lineno, text, nil, nil]
|
||||||
argc -= 1
|
argc -= 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue