From 5918d2a9148381e649cb664a2c4895e7d7757c18 Mon Sep 17 00:00:00 2001 From: ttate Date: Thu, 31 Oct 2002 08:37:16 +0000 Subject: Bugfix for Importable::callback. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/lib/dl/import.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') 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", -- cgit v1.2.3