ruby-changes:68737
From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:13:06 +0900 (JST)
Subject: [ruby-changes:68737] 042c6aab54 (master): Fix cast warning
https://git.ruby-lang.org/ruby.git/commit/?id=042c6aab54 From 042c6aab548f41b8979ff7d1d10d310b359af7df Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Fri, 22 Jan 2021 15:18:05 -0500 Subject: Fix cast warning --- ujit_iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ujit_iface.c b/ujit_iface.c index 91d3621b43..591d9c044c 100644 --- a/ujit_iface.c +++ b/ujit_iface.c @@ -397,7 +397,7 @@ ujit_disasm(VALUE self, VALUE code, VALUE from) https://github.com/ruby/ruby/blob/trunk/ujit_iface.c#L397 cs_insn *insns; TypedData_Get_Struct(self, csh, &ujit_disasm_type, handle); - count = cs_disasm(*handle, StringValuePtr(code), RSTRING_LEN(code), NUM2INT(from), 0, &insns); + count = cs_disasm(*handle, (uint8_t *)StringValuePtr(code), RSTRING_LEN(code), NUM2INT(from), 0, &insns); VALUE insn_list = rb_ary_new_capa(count); for (size_t i = 0; i < count; i++) { -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/