diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dl/lib/dl/import.rb | 4 | ||||
-rw-r--r-- | ext/dl/ptr.c | 2 | ||||
-rw-r--r-- | ext/dl/sym.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/ext/dl/lib/dl/import.rb b/ext/dl/lib/dl/import.rb index 63c9b2c050..01ee2490e8 100644 --- a/ext/dl/lib/dl/import.rb +++ b/ext/dl/lib/dl/import.rb @@ -87,7 +87,7 @@ module DL " rs = dec.call(rs) if (dec && rs)", " @retval = r", " @args = rs", - " @retval", + " r", "}", ].join("\n")) @@ -169,7 +169,7 @@ module DL " rs = dec.call(rs) if dec", " @retval = r", " @args = rs", - " return @retval", + " return r", "end", "module_function :#{mname}", ].join("\n") diff --git a/ext/dl/ptr.c b/ext/dl/ptr.c index 59de4d8c98..4d75a3ddf2 100644 --- a/ext/dl/ptr.c +++ b/ext/dl/ptr.c @@ -466,7 +466,7 @@ rb_dlptr_inspect(VALUE self) char str[1024]; Data_Get_Struct(self, struct ptr_data, data); - snprintf(str, 1023, "#<%s:0x%p ptr=0x%p size=%ld free=0x%p>", + snprintf(str, 1023, "#<%s:0x%x ptr=0x%x size=%ld free=0x%x>", rb_class2name(CLASS_OF(self)), data, data->ptr, data->size, data->free); return rb_str_new2(str); } diff --git a/ext/dl/sym.c b/ext/dl/sym.c index 40b2035c00..87d07e7cbe 100644 --- a/ext/dl/sym.c +++ b/ext/dl/sym.c @@ -268,7 +268,7 @@ rb_dlsym_inspect(VALUE self) str_size = RSTRING(proto)->len + 100; str = dlmalloc(str_size); snprintf(str, str_size - 1, - "#<DL::Symbol:0x%p func=0x%p '%s'>", + "#<DL::Symbol:0x%x func=0x%x '%s'>", sym, sym->func, RSTRING(proto)->ptr); val = rb_tainted_str_new2(str); dlfree(str); |