mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Bugfix for Importable::callback.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ed18815109
commit
5918d2a914
1 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ module DL
|
|||
init_types()
|
||||
init_sym()
|
||||
|
||||
rty,_,rdec = @types.encode_type(ret)
|
||||
rty,renc,rdec = @types.encode_type(ret)
|
||||
ty,enc,dec = encode_types(args)
|
||||
symty = rty + ty
|
||||
|
||||
|
@ -84,7 +84,7 @@ module DL
|
|||
" sym,rdec,enc,dec = @SYM['#{func}']",
|
||||
" args = enc.call(args) if enc",
|
||||
" r,rs = #{func}(*args)",
|
||||
" r = rdec.call(r) if rdec",
|
||||
" r = renc.call(r) if rdec",
|
||||
" rs = dec.call(rs) if dec",
|
||||
" @retval = r",
|
||||
" @args = rs",
|
||||
|
|
Loading…
Add table
Reference in a new issue