mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-17 18:26:53 +00:00
Silent pointer arithmetic warning for capstone (#10206)
This commit is contained in:
parent
21fc4436e5
commit
91d857386b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user