1
0
Fork 0
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:
Alan Wu 2021-01-22 15:18:05 -05:00
parent f68ddaa54a
commit 042c6aab54

View file

@ -397,7 +397,7 @@ ujit_disasm(VALUE self, VALUE code, VALUE from)
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++) {