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",