diff options
Diffstat (limited to 'ext/dl/sym.c')
-rw-r--r-- | ext/dl/sym.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/dl/sym.c b/ext/dl/sym.c index b5de3b961f..95a813cc1f 100644 --- a/ext/dl/sym.c +++ b/ext/dl/sym.c @@ -145,7 +145,6 @@ VALUE rb_dlsym_initialize(int argc, VALUE argv[], VALUE self) { VALUE addr, name, type; - VALUE val; struct sym_data *data; void *saddr; const char *sname, *stype; @@ -266,7 +265,7 @@ rb_dlsym_inspect(VALUE self) str_size = RSTRING(proto)->len + 100; str = dlmalloc(str_size); snprintf(str, str_size - 1, - "#<DL::Symbol:0x%x func=0x%x '%s'>", + "#<DL::Symbol:0x%p func=0x%p '%s'>", sym, sym->func, RSTRING(proto)->ptr); val = rb_tainted_str_new2(str); dlfree(str); |