Merge pull request #792 from angr/fix/copy_via_memmove

Change pointer-deref-then-assignment to memmove to make PyPy happy.
test2
Nguyen Anh Quynh 8 years ago committed by GitHub
commit b4aae2d0ab
  1. 2
      bindings/python/capstone/__init__.py

@ -503,7 +503,7 @@ class CsInsn(object):
if self._cs._detail and self._raw.id != 0:
# save detail
self._raw.detail = ctypes.pointer(all_info.detail._type_())
ctypes.pointer(self._raw.detail[0])[0] = all_info.detail[0]
ctypes.memmove(ctypes.byref(self._raw.detail[0]), ctypes.byref(all_info.detail[0]), ctypes.sizeof(type(all_info.detail[0])))
# return instruction's ID.
@property

Loading…
Cancel
Save