summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-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",