mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix cast warning
This commit is contained in:
parent
f68ddaa54a
commit
042c6aab54
1 changed files with 1 additions and 1 deletions
|
@ -397,7 +397,7 @@ ujit_disasm(VALUE self, VALUE code, VALUE from)
|
||||||
cs_insn *insns;
|
cs_insn *insns;
|
||||||
|
|
||||||
TypedData_Get_Struct(self, csh, &ujit_disasm_type, handle);
|
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);
|
VALUE insn_list = rb_ary_new_capa(count);
|
||||||
|
|
||||||
for (size_t i = 0; i < count; i++) {
|
for (size_t i = 0; i < count; i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue