mirror of
https://github.com/capstone-engine/capstone.git
synced 2025-03-04 04:17:46 +00:00
remove the redundant detail copy
This commit is contained in:
parent
7a4e5f7305
commit
3dcb8fbc49
@ -441,9 +441,6 @@ def copy_ctypes(src):
|
||||
"""Returns a new ctypes object which is a bitwise copy of an existing one"""
|
||||
dst = type(src)()
|
||||
ctypes.pointer(dst)[0] = src
|
||||
if hasattr(src, "detail"):
|
||||
dst.detail = ctypes.pointer(src.detail._type_())
|
||||
ctypes.pointer(dst.detail[0])[0] = src.detail[0]
|
||||
return dst
|
||||
|
||||
def _ascii_name_or_default(name, default):
|
||||
|
Loading…
x
Reference in New Issue
Block a user