summaryrefslogtreecommitdiff
path: root/ext/dl/lib/dl
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-31 08:37:16 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-31 08:37:16 +0000
commit5918d2a9148381e649cb664a2c4895e7d7757c18 (patch)
tree294109b2f1f554f4532b53baff00eda1a943115e /ext/dl/lib/dl
parented1881510950af3d8599c1a7dca14d53c35eb348 (diff)
Bugfix for Importable::callback.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/lib/dl')
-rw-r--r--ext/dl/lib/dl/import.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dl/lib/dl/import.rb b/ext/dl/lib/dl/import.rb
index 16ecf9c904..b71cae30ab 100644
--- a/ext/dl/lib/dl/import.rb
+++ b/ext/dl/lib/dl/import.rb
@@ -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",