Silent pointer arithmetic warning for capstone (#10206)

This commit is contained in:
David CARLIER 2018-05-28 10:03:19 +01:00 committed by radare
parent 21fc4436e5
commit 91d857386b

View File

@ -54,7 +54,7 @@ index 449b1da5..fe87a318 100644
return 0;
}
-
+ memset (total + (sizeof(cs_insn) * old_size), 0, (total_size - old_size));
+ memset ((char *)total + (sizeof(cs_insn) * old_size), 0, (total_size - old_size));
total = tmp;
// continue to fill in the cache after the last instruction
insn_cache = (cs_insn *)((char *)total + sizeof(cs_insn) * c);