summaryrefslogtreecommitdiffstats
path: root/ext/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
commit4f116fe2b6c2a6e6771e573f6225fc08ec244881 (patch)
tree294109b2f1f554f4532b53baff00eda1a943115e /ext/dl
parent6a8a3a026a4bba865d3f3162752bcec88e1a595a (diff)
downloadruby-4f116fe2b6c2a6e6771e573f6225fc08ec244881.tar.gz
ruby-4f116fe2b6c2a6e6771e573f6225fc08ec244881.tar.xz
ruby-4f116fe2b6c2a6e6771e573f6225fc08ec244881.zip
Bugfix for Importable::callback.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/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 16ecf9c90..b71cae30a 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",