summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-08-27 14:05:20 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-08-27 14:05:20 +0900
commitd53b669948af29ca086d915c8bded0d1963e2c98 (patch)
tree189bcfaeaddf6f5680642afe1d05d1f92d1ccd63
parent8eee3f3a3623d728c160c41546513594793fb7fb (diff)
compile.c: remove const from the first argument of dladdr
Unfortunately, dladdr accepts void*, not const void*, in Solaris.
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 26b580b090..008dfc8d67 100644
--- a/compile.c
+++ b/compile.c
@@ -8281,7 +8281,7 @@ insn_data_to_s_detail(INSN *iobj)
break;
case TS_FUNCPTR:
{
- const void *func = (const void *)OPERAND_AT(iobj, j);
+ void *func = (void *)OPERAND_AT(iobj, j);
#ifdef HAVE_DLADDR
Dl_info info;
if (dladdr(func, &info) && info.dli_sname) {