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
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue