ruby-changes:49427
From: shyouhei <ko1@a...>
Date: Tue, 2 Jan 2018 15:41:46 +0900 (JST)
Subject: [ruby-changes:49427] shyouhei:r61543 (trunk): rb_insn_func_t is incompatible with void*
shyouhei 2018-01-02 15:41:41 +0900 (Tue, 02 Jan 2018) New Revision: 61543 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61543 Log: rb_insn_func_t is incompatible with void* Why not just use void* ? Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 61542) +++ compile.c (revision 61543) @@ -7205,7 +7205,7 @@ insn_data_to_s_detail(INSN *iobj) https://github.com/ruby/ruby/blob/trunk/compile.c#L7205 break; case TS_FUNCPTR: { - rb_insn_func_t func = (rb_insn_func_t)OPERAND_AT(iobj, j); + const void *func = (const void *)OPERAND_AT(iobj, j); #ifdef HAVE_DLADDR Dl_info info; if (dladdr(func, &info) && info.dli_sname) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/